STRUCT GP2AP002(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ struct gp2ap002 β€” GP2AP002 state ✨

okay so this is from the Kernel API Manual, section 9 (that's the kernel-API section, iykyk) β€” it's the page for struct gp2ap002. Buckle up bestie, it's a struct tour πŸ’…


🌸 SYNOPSIS 🌸

here's the whole thing, character for character, no cap:

struct gp2ap002 {
    struct regmap *map;
    struct device *dev;
    struct regulator *vdd;
    struct regulator *vio;
    struct iio_channel *alsout;
    u8 hys_far;
    u8 hys_close;
    bool is_gp2ap002s00f;
    int irq;
    bool enabled;
 };

πŸŽ€ Members πŸŽ€

  • map β€” the regmap pointer for the i2c regmap. that's her main character pointer fr.
  • dev β€” pointer to the parent device 🫢
  • vdd β€” the regulator controlling VDD, keeping the power situation iconic
  • vio β€” the regulator controlling VIO ✨
  • alsout β€” the IIO ADC channel used to convert the ALSOUT signal πŸ“ˆ
  • hys_far β€” hysteresis control, straight from the device tree
  • hys_close β€” hysteresis control, also straight from the device tree
  • is_gp2ap002s00f β€” a bool that says this is the GP2AP002F variant of the chip πŸ‘‘
  • irq β€” the IRQ line this device uses, she's got her own line πŸ’€
  • enabled β€” ok so this one's important: we literally cannot read the status of the hardware, so we have to keep track of whether the event is enabled using this state variable. so enabled is basically the memory of the relationship πŸ™ˆ

πŸ’œ SEE ALSO πŸ’œ

  • Kernel file ./drivers/iio/light/gp2ap002.c

that's the whole vibe check. stay slay, stay compiled πŸ’–

✧ο½₯゚: ✧ο½₯゚: this page lives in ./drivers/iio/light, comes to you from October 2026, and it's struct gp2ap002(9) all the way down β€” mwah, see u in the next manpage πŸŽ€πŸ¦‹πŸ“

πŸ“¦ where this page comes from