Skip to content

Commit

Permalink
hwmon: Add new attributes to sysfs ABI
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Guenter Roeck committed Jul 29, 2011
1 parent c6bfb76 commit 0084e9f
Showing 1 changed file with 46 additions and 0 deletions.
46 changes: 46 additions & 0 deletions Documentation/hwmon/sysfs-interface
Original file line number Diff line number Diff line change
Expand Up @@ -139,6 +139,29 @@ in[0-*]_input Voltage input value.
thumb: drivers should report the voltage values at the
"pins" of the chip.

in[0-*]_average
Average voltage
Unit: millivolt
RO

in[0-*]_lowest
Historical minimum voltage
Unit: millivolt
RO

in[0-*]_highest
Historical maximum voltage
Unit: millivolt
RO

in[0-*]_reset_history
Reset inX_lowest and inX_highest
WO

in_reset_history
Reset inX_lowest and inX_highest for all sensors
WO

in[0-*]_label Suggested voltage channel label.
Text string
Should only be created if the driver has hints about what
Expand Down Expand Up @@ -407,6 +430,29 @@ curr[1-*]_input Current input value
Unit: milliampere
RO

curr[1-*]_average
Average current use
Unit: milliampere
RO

curr[1-*]_lowest
Historical minimum current
Unit: milliampere
RO

curr[1-*]_highest
Historical maximum current
Unit: milliampere
RO

curr[1-*]_reset_history
Reset currX_lowest and currX_highest
WO

curr_reset_history
Reset currX_lowest and currX_highest for all sensors
WO

Also see the Alarms section for status flags associated with currents.

*********
Expand Down

0 comments on commit 0084e9f

Please sign in to comment.