ads131m_reset(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… ads131m_reset πŸ’…

okay bestie, welcome to the Kernel API Manual page for ads131m_reset β€” yes that's the function name, yes it's in the NAME section, and yes we're doing this. she's giving reset icon energy, no cap ✨

✨ NAME ✨

ads131m_reset β€” Resets the device using hardware or software. literally that's her whole job πŸŽ€

✨ SYNOPSIS ✨

int ads131m_reset (struct ads131m_priv *priv , struct reset_control
*rstc );

like, she takes two things and returns an int, periodt πŸ’…

🫢 ARGUMENTS 🫢

  • priv β€” Device private data structure. the main character of the struct world, she holds all the private deets πŸ”₯
  • rstc β€” Optional reset control, or NULL for software reset. so if you pass NULL? that's the software path, bestie, choose wisely 🌸

πŸ’– DESCRIPTION πŸ’–

This function performs a hardware reset if supported (rstc provided), otherwise it issues a software RESET command via SPI.

that's it. that's the vibe check. hardware if you got the goods, software SPI RESET if you don't πŸ¦‹

🌈 NOTE 🌈

okay this part is important so listen up:

  • The software reset path also validates the device's reset acknowledgment against the expected ID for the compatible string.
  • The hardware reset path bypasses this ID check.

so like… software path = she checks your ID at the door, hardware path = walks right past the bouncer πŸ’€ iykyk

⭐ RETURN ⭐

0 on success, or a negative error code. so 0? slay, we ate. negative? that's a no from her πŸ₯²

πŸ‘‘ SEE ALSO πŸ‘‘

the whole friend group fr fr, go read them too 🧚


and that's the page bestie!! sourced straight from ./drivers/iio/adc, dated October 2026 β€” she's iconic, she's timeless, she resets things πŸ’œπŸŽ€πŸ«Ά

πŸ“¦ where this page comes from