STRUCT PM8XXX_CHAN_INFO(9)
β¨ struct pm8xxx_chan_info(9) β¨
Hey bestie, welcome to the Kernel API Manual π this one's about struct pm8xxx_chan_info, which is literally the ADC channel information glow-up you didn't know you needed. Sit down, grab a strawberry π, let's get into it.
πΈ NAME πΈ
struct pm8xxx_chan_info β ADC channel information π
that's it, that's the whole vibe.
π¦ SYNOPSIS π¦
struct pm8xxx_chan_info {
const char *label;
const struct xoadc_channel *hwchan;
enum vadc_calibration calibration;
u8 decimation:2;
u8 amux_ip_rsv:3;
};
okay so it's giving five fields, one struct, zero drama β¨ copy it exactly, no cap, don't be out here renaming stuff π
π Members π
Here's the breakdown of every single member, because we do not skip details in this house π
labelβ the label of this channel, straight from the device tree π³ and if you didn't specify one? it defaults to the datasheet name, bestie, it's got you covered π«Άhwchanβ a pointer to the hardware channel information, aka the muxing & scaling settings π₯ this is where the actual hardware tea livescalibrationβ tells you whether to use absolute or ratiometric calibration β pick your fighterdecimationβ the valid values are0,1,2,3ποΈ literally just those four, iconicamux_ip_rsvβ the ratiometric scale value, but only if you're using ratiometric calibration π the values are0,1,2,4,5(yes,3is missing, don't come for me, that's just what it says π)
π SEE ALSO π
Go read these next, iykyk π:
- Kernel file
./drivers/iio/adc/qcom-pm8xxx-xoadc.c - struct
xoadc_channel(9) - struct
xoadc_variant(9) - struct
pm8xxx_xoadc(9)
and that's the whole page, bestie π¦ slay, you ate π
sign-off vibes: this little masterpiece lives in ./drivers/iio/adc and it's dated October 2026 π 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