STRUCT AB8500_ADC_CAL_DATA(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay so bestie, welcome to struct ab8500_adc_cal_data β€” it's literally just a table for storing gain and offset for the calibrated ADC channels πŸ’… that's the whole vibe. this is the struct ab8500_adc_cal_data(9) page from the Kernel API Manual, and yes she's a struct, yes she's iconic, no she's not doing anything she doesn't need to πŸŽ€


πŸ¦‹ SYNOPSIS πŸ¦‹

like, here's her whole shape, no cap, copied exactly:

struct ab8500_adc_cal_data {
    s64 gain;
    s64 offset;
    u16 otp_calib_hi;
    u16 otp_calib_lo;
 };

she's four fields and zero drama. periodt ✨


🌸 Members 🌸

  • gain β€” the gain of the ADC channel 🫢 that's it, that's the field, she just holds the gain.
  • offset β€” the offset of the ADC channel πŸ’œ likewise, she's holding the offset, lowkey the whole point of the table.
  • otp_calib_hi β€” calibration from OTP ⭐ high one. yep, "calibration from OTP", that's literally the description, i'm not gonna invent lore for you πŸ™ˆ
  • otp_calib_lo β€” calibration from OTP 🌈 the low one. same deal, another slab of calibration from OTP, fr fr.
not me being obsessed with how straightforward this struct is 😭 she does not overcomplicate. we love a low-maintenance queen πŸ‘‘

🌟 SEE ALSO 🌟

go read these next bestie, they're all right there in the kernel file ./drivers/iio/adc/ab8500-gpadc.c:

like, the whole friend group 🧚 they all live in ./drivers/iio/adc and honestly? ate. πŸ’–


aaaand that's the page!! πŸ’€ cute little sign-off: this one comes from the ./drivers/iio/adc corner of the kernel, dated October 2026 (future queen behavior honestly ⭐), and she goes by struct ab8500_adc_cal_data(9) πŸ’… byeee πŸŽ€

πŸ“¦ where this page comes from