hwmon: (it87) Introduce support for tempX_offset sysfs attribute
Subsystems (3)
Guenter Roeck
maintainerPATCH v4 1/3 hwmon: (it87) Introduce support for tempX_offset sysfs attribute
---
v4: Add missing chip types (it8718 and it8720) to has_temp_offset()
Clean up set_temp() a bit more
v3: s/S_IRUGOWU/S_IRUGO | S_IWUSR/
Limit support for new attributes to IT8716F and higher Clarify code to select target register in set_temp().
Only clear valid flag when writing into offset registers,
not for any other temperature limit set operations.
v2: The macro to calculate IT87_REG_TEMP_OFFSET was broken. Use array instead.
When writing the temperature offset attribute, set the flag to enable it. Add documentation describing the new attributes.
Documentation/hwmon/it87 | 9 +++++++ drivers/hwmon/it87.c | 66 ++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 70 insertions(+), 5 deletions(-)
Documentation/hwmon/it87 +9 -0
@@ -209,3 +209,12 @@ doesn't use CPU cycles. Trip points must be set properly before switching to automatic fan speed control mode. The driver will perform basic integrity checks before actually switching to automatic control mode. + + +Temperature offset attributes +----------------------------- + +The driver supports temp[1-3]_offset sysfs attributes to adjust the reported +temperature for thermal diodes or diode-connected thermal transistors. +If a temperature sensor is configured for thermistors, the attribute values +are ignored.
drivers/hwmon/it87.c +60 -5
134 lines not on this page · raw message
Signature · 7 lines
1.7.9.7 _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
Jean Delvare
AppliedQuoted 13 lines · Guenter Roeck
Signed-off-by Guenter Roeck <[email protected]>---
v4: Add missing chip types (it8718 and it8720) tohas_temp_offset()
Clean upset_temp()a bit more
v3: s/S_IRUGOWU/S_IRUGO | S_IWUSR/
Limit support for new attributes to IT8716F and higher Clarify code to select target register inset_temp().
Only clear valid flag when writing into offset registers,
not for any other temperature limit set operations.
v2: The macro to calculateIT87_REG_TEMP_OFFSETwas broken. Use array instead.
When writing the temperature offset attribute, set the flag to enable it. Add documentation describing the new attributes.
Quoted 4 lines
Documentation/hwmon/it87 | 9 +++++++ drivers/hwmon/it87.c | 66 ++++++++++++++++++++++++++++++++++++++++++---- 2 files changed, 70 insertions(+), 5 deletions(-)(...)
Applied, thanks.
Signature · 6 lines
Jean Delvare _______________________________________________ lm-sensors mailing list [email protected] http://lists.lm-sensors.org/mailman/listinfo/lm-sensors