STRUCT TSENS_SENSOR(9)

πŸ“¦ version 7.3.1, in nixpkgs unstable

✨ NAME ✨

okay bestie, welcome to the Kernel API Manual page for struct tsens_sensor(9) β€” literally the data for each sensor connected to the tsens device πŸ’… no cap.


🫢 SYNOPSIS 🫢

here's the whole struct, served fresh:

struct tsens_sensor {
    struct tsens_priv               *priv;
    struct thermal_zone_device      *tzd;
    int offset;
    unsigned int                    hw_id;
    int slope;
    u32 status;
    int p1_calib_offset;
    int p2_calib_offset;
 };

πŸ’… Members πŸ’…

  • priv β€” the tsens device instance that this sensor is connected to, iykyk.
  • tzd β€” pointer to the thermal zone that this sensor is in.
  • offset β€” offset of the temperature adjustment curve.
  • hw_id β€” HW ID, which can be used in case of platform-specific IDs.
  • slope β€” slope of the temperature adjustment curve.
  • status β€” an 8960-specific variable to track the 8960 and 8660 status register offset.

quick heads-up πŸ«–: the synopsis also carries p1_calib_offset and p2_calib_offset, but this page doesn't give those two their own member blurbs. that's just the tea, fr fr.


πŸ‘‘ SEE ALSO πŸ‘‘

check these besties out:

  • Kernel file ./drivers/thermal/qcom/tsens.h
  • 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)
  • struct tsens_legacy_calibration_format(9)

mwah πŸ’‹ this one comes from ./drivers/thermal/qcom, dated October 2026, and it's filed under struct tsens_sensor(9). periodt πŸŽ€

πŸ“¦ where this page comes from