STRUCT TWL4030_MADC_DATA(9)
π struct_twl4030_madc_data β NAME
okay bestie, welcome to the Kernel API Manual page for struct twl4030_madc_data(9) β¨ β literally just a container for madc info. that's it. that's the whole vibe. it holds stuff, it's a struct, she's serving pure storage realness π
β¨ SYNOPSIS β¨
struct twl4030_madc_data {
struct device *dev;
struct mutex lock;
struct regulator *usb3v1;
struct twl4030_madc_request requests[TWL4030_MADC_NUM_METHODS];
bool use_second_irq;
u8 imr;
u8 isr;
};
likeβ¦ look at her. so defined. so structured. no cap π
π«Ά Members π«Ά
devβ pointer to the device structure for madc, i.e. who she actually belongs to π¦lockβ a mutex protecting this data structure. yes bestie she's guarded, do NOT touch her without the lock, that's undefined-behaviour territory and we don't do that here πusb3v1β pointer to the bias regulator for madc πΈrequestsβ array of request struct corresponding to SW1, SW2 and RT. three moods, one array, iconic honestly πuse_second_irqβ IRQ selection (main or co-processor). pick your fighter β¨imrβ interrupt mask register of MADC πisrβ interrupt status register of MADC β
π SEE ALSO π
- Kernel file
./drivers/iio/adc/twl4030-madc.cstruct twl4030_madc_request(9)twrl4030_madc_channel_raw_read(9)β nope lol, it'stwl4030_madc_channel_raw_read(9)π«Άtwl4030_madc_set_current_generator(9)
ok real talk: go read those too, they're the friends she keeps in her group chat, iykyk π
and that's the whole page, bestie!! fr fr you now know everything about her π this lil cutie lives over in ./drivers/iio/adc and the manual's dated October 2026 β mark your calendars, periodt π₯ π§
π¦ 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