Skip to contentSkip to conversation

hwmon: Update current alarm attributes

PATCH In review Guenter Roeck 2 participants 2 messages Jun 26, 2010

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 3/3 hwmon: Update current alarm attributes

This patch adds currX_alarm, currX_min_alarm, and currX_max_alarm attributes to the hwmon sysfs API.

currX_min_alarm and currX_max_alarm are already supported by the LTC4215 and LTC4245 drivers. currX_alarm is supported by the LTC4261 driver.

---
 Documentation/hwmon/sysfs-interface |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Documentation/hwmon/sysfs-interface +3 -0
index d4e2917..520fa7a 100644
@@ -471,6 +471,7 @@ limit-related alarms, not both. The driver should just reflect the hardware
 implementation.
 
 in[0-*]_alarm
+curr[1-*]_alarm
 fan[1-*]_alarm
 temp[1-*]_alarm
 		Channel alarm
@@ -482,6 +483,8 @@ OR
 
 in[0-*]_min_alarm
 in[0-*]_max_alarm
+curr[1-*]_min_alarm
+curr[1-*]_max_alarm
 fan[1-*]_min_alarm
 fan[1-*]_max_alarm
 temp[1-*]_min_alarm
Signature · 7 lines
1.7.0.87.g0901d


_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors
#1 lore raw

Re: [lm-sensors] [PATCH/RFC 3/3] hwmon: Update current alarm

Hi Guenter,

Quoted 24 lines · Guenter Roeck

This patch adds currX_alarm, currX_min_alarm, and currX_max_alarm attributes to the hwmon sysfs API.

currX_min_alarm and currX_max_alarm are already supported by the LTC4215 and LTC4245 drivers. currX_alarm is supported by the LTC4261 driver.

---
 Documentation/hwmon/sysfs-interface |    3 +++
 1 files changed, 3 insertions(+), 0 deletions(-)
Documentation/hwmon/sysfs-interface +1 -0
index d4e2917..520fa7a 100644
@@ -471,6 +471,7 @@ limit-related alarms, not both. The driver should just reflect the hardware
 implementation.
 
 in[0-*]_alarm
+curr[1-*]_alarm
 fan[1-*]_alarm
 temp[1-*]_alarm
 		Channel alarm

Documentation/hwmon/sysfs-interface OR · line 490

Quoted 8 lines
Documentation/hwmon/sysfs-interface +2 -0
@@ -482,6 +483,8 @@ OR
 
 in[0-*]_min_alarm
 in[0-*]_max_alarm
+curr[1-*]_min_alarm
+curr[1-*]_max_alarm
 fan[1-*]_min_alarm
 fan[1-*]_max_alarm
 temp[1-*]_min_alarm

Applied, thanks. I also added curr[1-*]_beep, as libsensors supports it already. And I've removed the comment that says that current attributes are not implemented by any driver yet, as this comment was obviously obsolete.

Signature · 6 lines
Jean Delvare

_______________________________________________
lm-sensors mailing list
[email protected]
http://lists.lm-sensors.org/mailman/listinfo/lm-sensors