Commit 0084e9faabbc1e228fda9c8a78ef1ea8ee97a9ae
1 parent
c6bfb767e4
Exists in
master
and in
6 other branches
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>
Showing 1 changed file with 46 additions and 0 deletions Side-by-side Diff
Documentation/hwmon/sysfs-interface
... | ... | @@ -139,6 +139,29 @@ |
139 | 139 | thumb: drivers should report the voltage values at the |
140 | 140 | "pins" of the chip. |
141 | 141 | |
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 | + | |
142 | 165 | in[0-*]_label Suggested voltage channel label. |
143 | 166 | Text string |
144 | 167 | Should only be created if the driver has hints about what |
... | ... | @@ -406,6 +429,29 @@ |
406 | 429 | curr[1-*]_input Current input value |
407 | 430 | Unit: milliampere |
408 | 431 | RO |
432 | + | |
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 | |
409 | 455 | |
410 | 456 | Also see the Alarms section for status flags associated with currents. |
411 | 457 |