Skip to content

Commit 0084e9f

Browse files
author
Guenter Roeck
committed
hwmon: Add new attributes to sysfs ABI
Add the following attributes to the sysfs ABI. in[0-*]_average in[0-*]_lowest in[0-*]_highest in[0-*]_reset_history in_reset_history curr[1-*]_average curr[1-*]_lowest curr[1-*]_highest curr[1-*]_reset_history curr_reset_history Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
1 parent c6bfb76 commit 0084e9f

1 file changed

Lines changed: 46 additions & 0 deletions

File tree

‎Documentation/hwmon/sysfs-interface‎

Lines changed: 46 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,29 @@ in[0-*]_input Voltage input value.
139139
thumb: drivers should report the voltage values at the
140140
"pins" of the chip.
141141

142+
in[0-*]_average
143+
Average voltage
144+
Unit: millivolt
145+
RO
146+
147+
in[0-*]_lowest
148+
Historical minimum voltage
149+
Unit: millivolt
150+
RO
151+
152+
in[0-*]_highest
153+
Historical maximum voltage
154+
Unit: millivolt
155+
RO
156+
157+
in[0-*]_reset_history
158+
Reset inX_lowest and inX_highest
159+
WO
160+
161+
in_reset_history
162+
Reset inX_lowest and inX_highest for all sensors
163+
WO
164+
142165
in[0-*]_label Suggested voltage channel label.
143166
Text string
144167
Should only be created if the driver has hints about what
@@ -407,6 +430,29 @@ curr[1-*]_input Current input value
407430
Unit: milliampere
408431
RO
409432

433+
curr[1-*]_average
434+
Average current use
435+
Unit: milliampere
436+
RO
437+
438+
curr[1-*]_lowest
439+
Historical minimum current
440+
Unit: milliampere
441+
RO
442+
443+
curr[1-*]_highest
444+
Historical maximum current
445+
Unit: milliampere
446+
RO
447+
448+
curr[1-*]_reset_history
449+
Reset currX_lowest and currX_highest
450+
WO
451+
452+
curr_reset_history
453+
Reset currX_lowest and currX_highest for all sensors
454+
WO
455+
410456
Also see the Alarms section for status flags associated with currents.
411457

412458
*********

0 commit comments

Comments
 (0)