summaryrefslogtreecommitdiff
path: root/scripts/lib/kdoc/kdoc_parser.py
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2024-07-15 22:36:35 -0700
committerGuenter Roeck <linux@roeck-us.net>2024-07-31 10:43:53 -0700
commit88c0f840dfe36e8c2fd9ddc7d6698e485f0ca1ad (patch)
treea0e36712c62739e03741fa6dbc80ed6d27e238c2 /scripts/lib/kdoc/kdoc_parser.py
parent3adc2857bb6a7c6cb669627b87e9998a3a28231d (diff)
hwmon: (max1619) Clamp temperature range when writing limits
Module test code reports underflows when writing sensor limits. temp2_min: Suspected underflow: [min=-77000, read 101000, written -2147483648] temp2_max: Suspected underflow: [min=-77000, read 101000, written -2147483648] temp2_crit: Suspected underflow: [min=-77000, read 101000, written -2147483648] Clamp temperature ranges when writing limits to fix the problem. While at it, use sign_extend32() when reading temperatures to make the code easier to understand. Reviewed-by: Tzung-Bi Shih <tzungbi@kernel.org> Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'scripts/lib/kdoc/kdoc_parser.py')
0 files changed, 0 insertions, 0 deletions