aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2025-08-29 13:49:51 +0000
committerGuenter Roeck <[email protected]>2025-09-01 15:03:05 +0000
commitbd7e7bc2cc2024035dfbc8239c9f4d8675793445 (patch)
treeeb1ee7f73053e8ffaedff8baaddb99f1075a0a88 /lib/debugobjects.c
parenthwmon: (ina238) Correctly clamp temperature (diff)
downloadkernel-bd7e7bc2cc2024035dfbc8239c9f4d8675793445.tar.gz
kernel-bd7e7bc2cc2024035dfbc8239c9f4d8675793445.zip
hwmon: (ina238) Correctly clamp shunt voltage limit
When clamping a register value, the result needs to be masked against the register size. This was missing, resulting in errors when trying to write negative limits. Fix by masking the clamping result against the register size. Fixes: eacb52f010a80 ("hwmon: Driver for Texas Instruments INA238") Cc: Nathan Rossi <[email protected]> Cc: Chris Packham <[email protected]> Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions