i2c_of_probe_simple_enable(9)
β¨ i2c_of_probe_simple_enable β¨
okay so bestie, this is a page from the Kernel API Manual and it's about i2c_of_probe_simple_enable β literally the simple helper that lets the I2C OF prober get and enable its resources π
it's giving "little function, big job" and honestly? obsessed.
π SYNOPSIS π
int i2c_of_probe_simple_enable (struct device *dev , struct device_node
*bus_node , void *data );
three args, returns an int, no cap π«Ά
πΈ ARGUMENTS πΈ
devβ a pointer to thestruct deviceof whoever's calling. lowkey it's only there fordev_printkmessages, so it's the group-chat narrator and nothing else π¬bus_nodeβ a pointer to thestruct device_nodeof the I2C adapter. that's the vibe check on which adapter we're talking about πdataβ a pointer to thestruct i2c_of_probe_simple_ctxhelper context. the main character carrying all the info β¨
π DESCRIPTION π
so here's the tea, fr fr:
- if
i2c_of_probe_simple_opts->supply_nameis given, it requests the regulator supply with that name π - if
i2c_of_probe_simple_opts->gpio_nameis given, it requests the GPIO with that name. or, if it's the empty string, it requests the unnamed GPIO π§ - if a regulator supply was actually found, it enables that regulator β‘
- if a GPIO line was found, it configures the GPIO line to output and sets the value according to the given options π
it's literally "find the thing, then turn the thing on" energy and she ate π₯
β RETURN β
0 on success or no-op (yes bestie, doing nothing counts as a win sometimes π), or a negative error number on failure π
π SEE ALSO π
- kernel file
./drivers/i2c/i2c-core-of-prober.cβ the source, go read it iykyk π i2c_of_probe_component(9)i2c_of_probe_simple_cleanup_early(9)i2c_of_probe_simple_cleanup(9)
and that's the whole page, bestie πΈ it lives in ./drivers/i2c, dated October 2026, and that's the Kernel API Manual signing off π mwah π«Ά
π¦ 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