Skip to contentSkip to conversation

hwmon: (it87) Introduce support for tempX_offset sysfs attribute

PATCH Applied Guenter Roeck 2 participants 2 messages Oct 30, 2012

Subsystems (3)
lore
Share & tools
lore

Guenter Roeck

author maintainer
#0 lore raw

PATCH 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
index 87850d8..e1f3828 100644
@@ -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
Applied
#1 lore raw
Quoted 13 lines · Guenter Roeck

---
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.

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