diff options
author | Armin Wolf <[email protected]> | 2022-02-15 20:11:09 +0100 |
---|---|---|
committer | Guenter Roeck <[email protected]> | 2022-02-27 17:03:19 -0800 |
commit | 4d9983dee5d4839008f7d1a75e866bccaa5877e8 (patch) | |
tree | e0cb9774bae59d8b2e9c31a6d1fbadfe9aab68c2 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | ec3db1ecf63e02265b4e93ddb1ba5cc6858c3972 (diff) |
hwmon: (dell-smm) Make fan/temp sensor number a u8
Right now, we only use bits 0 to 7 of the fan/temp sensor number
by doing number & 0xff. Passing the value as a u8 makes this
step unnecessary. Also add checks to the ioctl handler since
users might get confused when passing 0x00000101 does the same
as passing 0x00000001.
Tested on a Dell Inspiron 3505.
Signed-off-by: Armin Wolf <[email protected]>
Reviewed-by: Pali Rohár <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions