STRUCT ADC_TM5_CHANNEL(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

πŸ’… NAME πŸ’…

okay so bestie, this is the Kernel API Manual page for struct adc_tm5_channel(9), and it is literally ADC Thermal Monitoring channel data. That’s the whole vibe: one struct, all the channel info, no cap. 🫢


✨ SYNOPSIS ✨

here’s the struct in all its iconic glory, preserved exactly:

       struct adc_tm5_channel {
           unsigned int            channel;
           unsigned int            adc_channel;
           enum adc_tm5_cal_method cal_method;
           unsigned int            prescale;
           unsigned int            hw_settle_time;
           unsigned int            decimation;
           unsigned int            avg_samples;
           bool high_thr_en;
           bool low_thr_en;
           bool meas_en;
           struct iio_channel      *iio;
           struct adc_tm5_chip     *chip;
           struct thermal_zone_device *tzd;
        };

🫢 Members 🫢

okay, member-by-member, let’s go πŸ’–

  • channel β€” channel number. literally the channel number, bestie.
  • adc_channel β€” corresponding ADC channel number. it’s giving β€œthe ADC-side match” energy.
  • cal_method β€” calibration method.
  • prescale β€” channel scaling performed on the input signal.
  • hw_settle_time β€” the time between AMUX being configured and the start of conversion. yes, that exact timing window ✨
  • decimation β€” sampling rate supported for the channel.
  • avg_samples β€” ability to provide single result from the ADC that is an average of multiple measurements. averaging slay πŸ’…
  • high_thr_en β€” channel upper voltage threshold enable state.
  • low_thr_en β€” channel lower voltage threshold enable state.
  • meas_en β€” recurring measurement enable state.
  • iio β€” IIO channel instance used by this channel.
  • chip β€” ADC TM chip instance.
  • tzd β€” thermal zone device used by this channel.

🌈 SEE ALSO 🌈

go look at the Kernel file ./drivers/thermal/qcom/qcom-spmi-adc-tm5.c and also struct adc_tm5_chip(9). that’s the see-also situation, periodt πŸ¦‹


mwah πŸ’‹ cute little sign-off: this page’s source/version is ./drivers/thermal/qcom, it’s dated October 2026, and it’s literally struct adc_tm5_channel(9). bye bestie, go read some kernel source πŸŽ€

πŸ“¦ where this page comes from