i2c_of_probe_simple_cleanup(9)
π 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 thestruct deviceof the caller. heads up: it's only used fordev_printkmessages. that's its whole job, it's the designated messenger π£dataβ pointer to thestruct i2c_of_probe_simple_ctxhelper 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 π
- Kernel file
./drivers/i2c/i2c-core-of-prober.cβ the source, go read it, it's iconic π i2c_of_probe_component(9)βi2c_of_probe_simple_enable(9)β the enable half, the one we're undoing πi2c_of_probe_simple_cleanup_early(9)β yes there's an early cleanup too, main character energy runs in the family β¨
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
- 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