STRUCT ADC5_CHIP(9)
π 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 abool, 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.cstructadc5_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
- 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