STRUCT IADC_CHIP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, this page is struct iadc_chip β€” literally the IADC Current ADC device structure, and we're reading it out of the Kernel API Manual</>, section 9, iykyk πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole vibe of the struct, no cap, every field exactly as it is:

struct iadc_chip {
    struct regmap   *regmap;
    struct device   *dev;
    u16 base;
    bool poll_eoc;
    u32 rsense[2];
    u16 offset[2];
    u16 gain;
    struct mutex    lock;
    struct completion complete;
 };

🌸 Members 🌸

okay so let's go member by member, because the way each one has a job is genuinely iconic πŸ’…

  • regmap β€” the regmap used for register read/write. that's the whole thing, she reads and she writes ✨
  • dev β€” this device pointer. main character energy fr fr πŸ‘‘
  • base β€” the base offset for the ADC peripheral.
  • poll_eoc β€” poll for end of conversion instead of waiting for the IRQ. yes bestie, she's impatient, she's polling πŸ”₯
  • rsense β€” the values of the internal and external sense resister in micro Ohms. (yes, "resister", that's literally what the page says, don't come for me 😭)
  • offset β€” raw offset values for the internal and external channels.
  • gain β€” the raw gain of the channels.
  • lock β€” the ADC lock for access to the peripheral. no two threads in the club at once πŸ™ˆ
  • complete β€” the ADC notification after the end of conversion interrupt is received.

πŸ”₯ SEE ALSO πŸ”₯

  • Kernel file ./drivers/iio/adc/qcom-spmi-iadc.c β€” go read her, she's the real source of truth ⭐

lowkey that's the whole page, bestie β€” nothing hidden, nothing skipped, everything's up there 🫢

and for the cute sign-off: this fab little doc came out of ./drivers/iio/adc and it's dated October 2026, so like… future vibes but make it kernel πŸ’œπŸ’«

πŸ“¦ where this page comes from