Skip to content

Commit

Permalink
hwmon: Document the samples attributes
Browse files Browse the repository at this point in the history
Document new ABI attributes: {in,power,curr,temp}_samples and samples.

Signed-off-by: Krzysztof Adamski <krzysztof.adamski@nokia.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
  • Loading branch information
Adamski, Krzysztof (Nokia - PL/Wroclaw) authored and Guenter Roeck committed Apr 16, 2019
1 parent 49c4455 commit bfe033a
Showing 1 changed file with 18 additions and 0 deletions.
18 changes: 18 additions & 0 deletions Documentation/hwmon/sysfs-interface
Original file line number Diff line number Diff line change
Expand Up @@ -756,6 +756,24 @@ intrusion[0-*]_beep
1: enable
RW

********************************
* Average sample configuration *
********************************

Devices allowing for reading {in,power,curr,temp}_average values may export
attributes for controlling number of samples used to compute average.

samples Sets number of average samples for all types of measurements.
RW

in_samples
power_samples
curr_samples
temp_samples Sets number of average samples for specific type of measurements.
Note that on some devices it won't be possible to set all of them
to different values so changing one might also change some others.
RW


sysfs attribute writes interpretation
-------------------------------------
Expand Down

0 comments on commit bfe033a

Please sign in to comment.