STRUCT TSENS_LEGACY_CALIBRATION_FORMAT(9)
π struct tsens_legacy_calibration_format(9) π
okay bestie, welcome to the kernel API manual for struct tsens_legacy_calibration_format(9) β yes that's the whole title, we're being thorough today β¨
πΈ NAME πΈ
struct tsens_legacy_calibration_format β it's literally the description of the calibration data you use when you're parsing the legacy nvmem blob π«Ά like, it tells you how the old-school calibration bytes are laid out so you don't have to guess. no cap, that's the entire job.
β¨ SYNOPSIS β¨
here's the shape of it, copy it exactly okay:
struct tsens_legacy_calibration_format {
unsigned int base_len;
unsigned int base_shift;
unsigned int sp_len;
struct tsens_single_value mode;
struct tsens_single_value invalid;
struct tsens_single_value base[2];
struct tsens_single_value sp[][2];
};
look at that little beauty π honestly iconic.
π Members π
time for the member-by-member vibe check, one at a time, no skipping π
base_lenβ the length of the base fields inside calibration data. it's giving "how many bits am i working with" energy β¨base_shiftβ the shift to be applied to base data. gotta slide those bits over, periodt π«sp_lenβ the length of thesN_pMfields inside calibration data. same deal asbase_len, but for thesN_pMgirlies πΈmodeβ descriptor of the calibration mode field πinvalidβ descriptor of the calibration mode invalid field π (yes, there's a whole field for "this mode is invalid", she's valid tho)baseβ descriptors of thebase0andbase1fields. that's the[2]right there, two of them, a matching set πspβ descriptors of thesN_pMfields. note the[][2]β it's a flex-y array, she grows π
π¦ SEE ALSO π¦
go read these next, bestie, they're all in the Kernel file ./drivers/thermal/qcom/tsens.h:
struct tsens_sensor(9)struct tsens_ops(9)struct tsens_features(9)struct tsens_plat_data(9)struct tsens_context(9)struct tsens_priv(9)struct tsens_single_value(9)
iykyk π₯
fr fr, everything above lives under ./drivers/thermal/qcom β that's the source, mwah π
and that's the whole page! dated October 2026, filed under ./drivers/thermal/qcom, and yes this is struct tsens_legacy_calibration_format(9) signing off π stay calibrated, bestie ππ§β
π¦ 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