STRUCT MTK_PMIC_AUXADC_INFO(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… struct mtk_pmic_auxadc_info(9) πŸ’…

okay bestie, so this is a page straight out of the Kernel API Manual β€” section 9, the struct section, the one where all the good stuff lives ✨ β€” and today's main character is struct mtk_pmic_auxadc_info, which is literally just PMIC specific chip info. that's it. that's the vibe. 🫢


🌸 SYNOPSIS 🌸

like, here's the whole shape of it, no cap, copy it exactly:

struct mtk_pmic_auxadc_info {
    const char *model_name;
    const struct iio_chan_spec *channels;
    u8 num_channels;
    const struct mtk_pmic_auxadc_chan *desc;
    const u16 *regs;
    u16 sec_unlock_key;
    u32 vref_mV;
    u8 imp_adc_num;
    bool is_spmi;
    bool no_reset;
    int (*read_imp)(struct mt6359_auxadc *adc_dev, const struct
iio_chan_spec *chan, int *vbat, int *ibat);
 };

she's got range, she's got a function pointer at the end, she's iconic πŸ’…


πŸŽ€ Members πŸŽ€

okay so let's go through every single one of these, because we do NOT skip members in this house:

  • model_name β€” the PMIC model name bestie. literally the name of the model. we love a self-explanatory field πŸ’–
  • channels β€” the IIO specification of ADC channels. fancy way of saying "which channels we got" πŸ¦‹
  • num_channels β€” the number of ADC channels. how many channels. count 'em. πŸ”₯
  • desc β€” PMIC AUXADC channel data. the data for the channel. periodt ✨
  • regs β€” list of PMIC specific registers. registers, but make them PMIC specific πŸ‘‘
  • sec_unlock_key β€” security unlock key for HK_TOP writes πŸ—οΈ (yes the key is part of the struct, she's important)
  • vref_mV β€” AUXADC Reference Voltage (VREF) in millivolts. millivolts! not volts! keep up πŸ’€
  • imp_adc_num β€” the ADC channel for battery impedance readings πŸ“
  • is_spmi β€” defines whether this PMIC communicates over SPMI. a whole bool for the communication situation, we respect the clarity πŸ’œ
  • no_reset β€” if true, this PMIC does not support ADC reset. like AT ALL. so don't come for her about resets πŸ™ˆ
  • read_imp β€” callback to read impedance channels. callbacks are so main character energy, ngl ⭐

it's giving "well-organized chip info struct," and honestly? ate. 🌈


πŸ’« SEE ALSO πŸ’«

go look at these, iykyk:


and that's the whole page, bestie 🧚 no cap, that's genuinely all of it.

ngl there's no warnings section, no exit statuses, no environment variables β€” this one is just a clean little struct page and we're not gonna invent drama that isn't there πŸ’…

sign-off time: this lil page lives under ./drivers/iio/adc, and it's dated October 2026 β€” so yeah, the future called, and it's still talking about PMIC AUXADC structs 😭 slay. πŸ’–

πŸ“¦ where this page comes from