STRUCT MTK_PMIC_AUXADC_INFO(9)
π 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 forHK_TOPwrites ποΈ (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:
- Kernel file
./drivers/iio/adc/mt6359-auxadc.cβstruct mt6359_auxadc(9),struct mtk_pmic_auxadc_chan(9),mt6359_auxadc_sample_adc_val(9)
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
- 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