ads131m_reset(9)
π 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, orNULLfor software reset. so if you passNULL? 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 π
- Kernel file
./drivers/iio/adc/ti-ads131m02.c ads131m_tx_frame_unlocked(9),ads131m_rx_frame_unlocked(9),ads131m_check_status_crc_err(9),ads131m_write_reg_unlocked(9),ads131m_read_reg_unlocked(9),ads131m_rmw_reg(9),ads131m_verify_output_crc(9),ads131m_adc_read(9),ads131m_hw_reset(9),ads131m_sw_reset(9),ads131m_hw_init(9),ads131m_parse_clock(9)
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
- nixpkgs unstable: linux-manual 7.3.1
- π girlified by deepseek-ai/DeepSeek-V4.1-Flash-1017 on : a language model's rewrite of the original, under its terms