i2c_of_probe_simple_cleanup(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… i2c_of_probe_simple_cleanup(9) β€” the Kernel API Manual page, but make it cute

okay so bestie, welcome to the Kernel API Manual entry for i2c_of_probe_simple_cleanup β€” the cleanup half of the I2C OF prober simple helpers. yes, it's a whole saga, and this is the part where we tidy up and let things go 🧹✨


✨ NAME ✨

i2c_of_probe_simple_cleanup β€” clean up and release resources for I2C OF prober simple helpers. it's giving "end of study session, pack your bag, turn off the lamp" energy πŸŽ€


🌸 SYNOPSIS 🌸

void i2c_of_probe_simple_cleanup (struct device *dev , void *data );

literally that's it. no return value, it just goes in, tidies, and leaves. no cap πŸ’… (copy it exactly like that if you're typing it out, spaces and all β€” the manpage says what it says.)


πŸ¦‹ ARGUMENTS πŸ¦‹

  • dev β€” pointer to the struct device of the caller. heads up: it's only used for dev_printk messages. that's its whole job, it's the designated messenger πŸ“£
  • data β€” pointer to the struct i2c_of_probe_simple_ctx helper context. this is the actual bag of stuff we're cleaning up πŸŽ’

πŸ’– DESCRIPTION πŸ’–

so here's the to-do list, and honestly it's short and slay:

  • GPIO line check πŸŽ€ β€” if a GPIO line was found and it was not yet released, set its value to the opposite of whatever was set in i2c_of_probe_simple_enable, then release it. yes, opposite. we put it back how we found it, we're polite like that 🫢
  • Regulator check ⭐ β€” if a regulator supply was found, disable that regulator and release it. bye bestie, thanks for the power πŸ”Œ
lowkey important: these are conditional, okay? if the GPIO line was found and not yet released β†’ flip + release. if a regulator supply was found β†’ disable + release. no found-thing, no cleanup-thing. the manpage doesn't promise anything beyond that, and neither do I πŸ™ˆ

🌈 SEE ALSO 🌈


and that's the page, bestie πŸ¦‹ sign-off time: this one lives under ./drivers/i2c, dated October 2026, and it's i2c_of_probe_simple_cleanup(9) all the way down. periodt πŸ’…πŸŽ€

πŸ“¦ where this page comes from