STRUCT AD5380_STATE(9)
β¨ struct ad5380_state(9) β¨
okay bestie, welcome to the Kernel API Manual β this is the page for struct ad5380_state, and it's literally the driver instance specific data π like, the lil' bundle of everything one ad5380 driver instance needs to know about itself. main character struct energy, no cap π
πΈ NAME πΈ
struct ad5380_state β driver instance specific data β¨
π¦ SYNOPSIS π¦
struct ad5380_state {
struct regmap *regmap;
const struct ad5380_chip_info *chip_info;
int vref;
bool pwr_down;
struct mutex lock;
};
like. look at her. five fields, zero notes π
π Members π
regmapβ the regmap instance that the device is out here using π«Ά that's her connection era.chip_infoβ chip model specific constants, available modes etc β basically the little fact-sheet for whichever chip variant you got, iykyk.vrefβ the actual reference voltage used, measured in uA π₯ yes, microamps, that's the unit, don't come for me.pwr_downβ aboolthat says whether the chip is currently in power down mode π΄ true = napping, fr fr.lockβ astruct mutexdoing the lock thing, protecting the data buffer during regmap ops π she's the bodyguard, periodt.
π SEE ALSO π
- Kernel file
./drivers/iio/dac/ad5380.c struct ad5380_chip_info(9)
lowkey a whole vibe check: it's giving "small struct, big responsibilities" π but she slays.
and that's the page, bestie ππ β brought to you by the source/version line ./drivers/iio/dac, dated October 2026, under the struct ad5380_state(9) title. 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