diff options
| author | Akira Shimahara <[email protected]> | 2020-05-11 22:38:01 +0200 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2020-05-15 16:29:00 +0200 |
| commit | e2c94d6f572079511945e64537eb1218643f2e68 (patch) | |
| tree | c3a49f9816cb8d93a98888edc4e15cabd55451b4 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 67b392f7b8edfa6f427fecd98722acab34c1c99f (diff) | |
w1_therm: adding alarm sysfs entry
Adding device alarms settings by a dedicated sysfs entry alarms (RW):
read or write TH and TL in the device RAM. Checking devices in alarm
state could be performed using the master search command.
As alarms temperature level are store in a 8 bit register on the device
and are signed values, a safe cast shall be performed using the min and
max temperature that device are able to measure. This is done by
int_to_short inline function.
A 'write_data' field is added in the device structure, to bind the
correct writing function, as some devices may have 2 or 3 bytes RAM.
Updating Documentation/ABI/testing/sysfs-driver-w1_therm accordingly.
Signed-off-by: Akira Shimahara <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions