Commit e04a715e authored by Guenter Roeck's avatar Guenter Roeck Committed by Jean Delvare

hwmon: Add 4 current alarm/beep attributes to sysfs-interface

Add currX_alarm, currX_min_alarm, currX_max_alarm and currX_beep
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.
Signed-off-by: default avatarGuenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: default avatarJean Delvare <khali@linux-fr.org>
parent f46fc8cd
...@@ -363,9 +363,6 @@ Also see the Alarms section for status flags associated with temperatures. ...@@ -363,9 +363,6 @@ Also see the Alarms section for status flags associated with temperatures.
* Currents * * Currents *
************ ************
Note that no known chip provides current measurements as of writing,
so this part is theoretical, so to say.
curr[1-*]_max Current max value curr[1-*]_max Current max value
Unit: milliampere Unit: milliampere
RW RW
...@@ -490,6 +487,7 @@ limit-related alarms, not both. The driver should just reflect the hardware ...@@ -490,6 +487,7 @@ limit-related alarms, not both. The driver should just reflect the hardware
implementation. implementation.
in[0-*]_alarm in[0-*]_alarm
curr[1-*]_alarm
fan[1-*]_alarm fan[1-*]_alarm
temp[1-*]_alarm temp[1-*]_alarm
Channel alarm Channel alarm
...@@ -501,6 +499,8 @@ OR ...@@ -501,6 +499,8 @@ OR
in[0-*]_min_alarm in[0-*]_min_alarm
in[0-*]_max_alarm in[0-*]_max_alarm
curr[1-*]_min_alarm
curr[1-*]_max_alarm
fan[1-*]_min_alarm fan[1-*]_min_alarm
fan[1-*]_max_alarm fan[1-*]_max_alarm
temp[1-*]_min_alarm temp[1-*]_min_alarm
...@@ -532,6 +532,7 @@ beep_enable Master beep enable ...@@ -532,6 +532,7 @@ beep_enable Master beep enable
RW RW
in[0-*]_beep in[0-*]_beep
curr[1-*]_beep
fan[1-*]_beep fan[1-*]_beep
temp[1-*]_beep temp[1-*]_beep
Channel beep Channel beep
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment