diff options
| author | Cong Nguyen <congnt264@gmail.com> | 2026-08-10 11:27:54 +0700 |
|---|---|---|
| committer | Guenter Roeck <linux@roeck-us.net> | 2026-08-16 14:40:32 -0700 |
| commit | 24fbeb83d9b750a36da42cb835a154d80fd3d495 (patch) | |
| tree | 8e820dd72b929095138d9b6cf8e63670097606b5 /tools/perf/scripts/python/bin/stackcollapse-record | |
| parent | 21b21a8c202ad1a0a1abb4e29ea45535da834b33 (diff) | |
hwmon: (max6621) fix temperature clamp range
MAX6621_TEMP_INPUT_MIN and MAX6621_TEMP_INPUT_MAX are used to clamp the
writable offset and critical thresholds. They are defined as -127000 and
128000.
The driver decodes the temperature through an s8 and its own comment in
max6621_read() documents an 8-bit two's complement value, whose range is
-128 to +127 degrees C. The current limits therefore reject the valid
-128 degrees C and accept +128 degrees C, which does not fit the 8-bit
range.
Correct the limits to -128000 and 127000.
Fixes: 92b64580f14b ("hwmon: (max6621) Add support for Maxim MAX6621 temperature sensor")
Cc: stable@vger.kernel.org
Assisted-by: Claude:claude-opus-4
Signed-off-by: Cong Nguyen <congnt264@gmail.com>
Link: https://lore.kernel.org/r/9d3a4f1895a47794bb359a2a32fb1ccd6a15812c.1786334038.git.congnt264@gmail.com
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'tools/perf/scripts/python/bin/stackcollapse-record')
0 files changed, 0 insertions, 0 deletions
