STRUCT AB8500_ADC_CAL_DATA(9)
β¨ 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:
struct ab8500_gpadc_chan_info(9)struct ab8500_gpadc(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 π§ 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
- 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