STRUCT TSENS_PLAT_DATA(9)
β¨ struct tsens_plat_data(9) β¨
okay so bestie, welcome to the Kernel API Manual entry for struct tsens_plat_data β literally the vibe check sheet for tsens at compile time π
πΈ NAME πΈ
struct tsens_plat_data β tsens compile-time platform data
Like, it's the little info card your thermal sensor platform fills out before anything even boots. no cap.
π¦ SYNOPSIS π¦
struct tsens_plat_data {
const u32 num_sensors;
const struct tsens_ops *ops;
unsigned int *hw_ids;
struct tsens_features *feat;
const struct reg_field *fields;
bool no_irq_wake;
};
copy it exactly, bestie, don't you dare retype it π
π Members π
num_sensorsβ how many sensors this platform supports. that's the count, periodt.opsβ the operations the tsens instance supports. it's giving "here's what I can actually do" β¨hw_idsβ a subset of the sensor ids the platform supports, used if it's not the first n. iykyk β if you're just doing the first n, you don't need this.featβ the features of the IP. main character energy for the hardware's capabilities πfieldsβ the bitfield locations. literally where the bits live πΊοΈno_irq_wakeβ if this is set, TSENS interrupts will not be configured as wakeup sources. so like, if set, no wakey-wakey from the sensor π΄
π₯ SEE ALSO π₯
- Kernel file
./drivers/thermal/qcom/tsens.h struct tsens_sensor(9)struct tsens_ops(9)struct tsens_features(9)struct tsens_context(9)struct tsens_priv(9)struct tsens_single_value(9)struct tsens_legacy_calibration_format(9)
also the directory ./drivers/thermal/qcom β that's where the whole friend group lives π«Ά
and that's the page, bestie!! π kernel file ./drivers/thermal/qcom/tsens.h, dated October 2026, living in ./drivers/thermal/qcom β slay, ate, no crumbs πβ¨πΈ
π¦ 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