aboutsummaryrefslogtreecommitdiffstats
path: root/lib/debugobjects.c
diff options
context:
space:
mode:
authorGuenter Roeck <[email protected]>2025-08-29 18:51:20 +0000
committerGuenter Roeck <[email protected]>2025-09-01 15:03:05 +0000
commitc2623573178bab32990695fb729e9b69710ed66d (patch)
treed58cc54a25cc72677f42afb75b31f9a8782e5641 /lib/debugobjects.c
parenthwmon: (ina238) Correctly clamp shunt voltage limit (diff)
downloadkernel-c2623573178bab32990695fb729e9b69710ed66d.tar.gz
kernel-c2623573178bab32990695fb729e9b69710ed66d.zip
hwmon: (ina238) Correctly clamp power limits
ina238_write_power() was attempting to clamp the user input but was throwing away the result. Ensure that we clamp the value to the appropriate range before it is converted into a register value. Fixes: 0d9f596b1fe34 ("hwmon: (ina238) Modify the calculation formula to adapt to different chips") Cc: Wenliang Yan <[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