STRUCT ADC5_CHIP(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’– struct adc5_chip(9) πŸ’–

okay so bestie, welcome to the Kernel API Manual β€” this is the page for struct adc5_chip, and it's literally the ADC private structure. yes, private. it's giving backstage-pass energy, nobody outside the driver gets to peek. πŸŽ€


✨ NAME ✨

struct adc5_chip β€” the ADC private structure, periodt. πŸ’…


πŸ¦‹ SYNOPSIS πŸ¦‹

here's the whole glow-up, copy it exactly bestie:

struct adc5_chip {
    struct regmap           *regmap;
    struct device           *dev;
    u16 base;
    unsigned int            nchannels;
    struct adc5_channel_prop        *chan_props;
    struct iio_chan_spec    *iio_chans;
    bool poll_eoc;
    struct completion       complete;
    struct mutex            lock;
    const struct adc5_data  *data;
 };

like, look at her. she's got range. 🌈


πŸ‘‘ Members πŸ‘‘

okay let's do the member-by-member vibe check, no skips, we're covering every single field: ⭐

  • regmap β€” the SPMI ADC5 peripheral register map field. it's the map, she's mapping. πŸ—ΊοΈ
  • dev β€” the SPMI ADC5 device. the device herself. main character. πŸ‘‘
  • base β€” the base address for the ADC peripheral. everything starts here fr fr. πŸ“
  • nchannels β€” number of ADC channels. count 'em. πŸ”’
  • chan_props β€” array of ADC channel properties. yes bestie, an array. πŸ’…
  • iio_chans β€” array of IIO channels specification. another array, we stay stacked. 🧚
  • poll_eoc β€” use polling instead of interrupt. it's a bool, it's literally a choice. πŸ™ˆ
  • complete β€” ADC result notification after interrupt is received. the "we're so back" signal. ✨
  • lock β€” ADC lock for access to the peripheral. mutual exclusion girlies rise. πŸ”’
  • data β€” software configuration data. the lore. the config. πŸ“

🌸 SEE ALSO 🌸

go read these next, iykyk:

  • Kernel file ./drivers/iio/adc/qcom-spmi-adc5.c struct adc5_channel_prop(9)

lowkey a reminder bestie: this page lives under ./drivers/iio/adc β€” that's the neighborhood. πŸ’–

and that's the whole page, bestie!! 🫢 no cap, you ate that. this masterpiece came from ./drivers/iio/adc and it's stamped October 2026 β€” iconic date, iconic struct, slay. πŸ’œπŸ”₯

πŸ“¦ where this page comes from