STRUCT AB8500_GPADC(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

🌸 NAME 🌸

struct ab8500_gpadc β€” okay bestie, this is literally the AB8500 GPADC device information struct ✨ (yes, the whole manual is the Kernel API Manual, we're in the kernel-API-manual girlies now πŸ’…)


πŸŽ€ SYNOPSIS πŸŽ€

struct ab8500_gpadc {
    struct device *dev;
    struct ab8500 *ab8500;
    struct ab8500_gpadc_chan_info *chans;
    unsigned int nchans;
    struct completion complete;
    struct regulator *vddadc;
    int irq_sw;
    int irq_hw;
    struct ab8500_adc_cal_data cal_data[AB8500_CAL_NR];
 };

Like, that's the whole shape of her πŸ‘‘ no cap, and every field is about to get its own little moment ⭐


πŸ’… Members πŸ’…

  • dev β€” pointer to the containing device 🫢 the whole "who do I belong to" of it all
  • ab8500 β€” pointer to the parent AB8500 device πŸ’– her parent, literally her main character origin story
  • chans β€” internal per-channel information container πŸŽ€ internal! per-channel! the little filing cabinet of vibes
  • nchans β€” number of channels 🌈 like, how many channels we even dealing with
  • complete β€” pointer to the completion that indicates the completion of an gpadc conversion cycle πŸ’€ yes bestie it says "completion" twice, that's not me being extra, that's the actual doc, and honestly? the way that a gpadc conversion cycle gets to be completed... obsessed 😭✨
  • vddadc β€” pointer to the regulator supplying VDDADC πŸ”₯ the power supply, the literal sustainer of life, the it-girl
  • irq_sw β€” interrupt number that is used by gpadc for software ADC conversion πŸ¦‹ software conversion interrupt, iykyk
  • irq_hw β€” interrupt number that is used by gpadc for hardware ADC conversion πŸ‘‘ hardware conversion interrupt, her sister, equally iconic
  • cal_data β€” array of ADC calibration data structs πŸ’œ it's an array, she contains multitudes, AB8500_CAL_NR of them to be exact

πŸ¦‹ SEE ALSO πŸ¦‹

Kernel file ./drivers/iio/adc/ab8500-gpadc.c struct ab8500_adc_cal_data(9), struct ab8500_gpadc_chan_info(9), ab8500_gpadc_ad_to_voltage(9), ab8500_bm_gpadcconvend_handler(9), ab8500_gpadc_parse_channel(9), ab8500_gpadc_parse_channels(9)

Like the whole friend group fr fr 🫢 go say hi:


πŸ’– And that's the tea, bestie. This page lives in ./drivers/iio/adc, it's dated October 2026, and it's filed under struct ab8500_gpadc(9). Slay, ate, periodt. βœ¨πŸŽ€πŸŒ·
πŸ“¦ where this page comes from