diff options
| author | Chris Packham <[email protected]> | 2025-08-29 03:05:10 +0000 |
|---|---|---|
| committer | Guenter Roeck <[email protected]> | 2025-08-29 13:56:30 +0000 |
| commit | 98fd069dd87386d87eaf439e3c7b5767618926d2 (patch) | |
| tree | 95b51780f92fc3e1a075753c774edf0e85c8c919 /lib/debugobjects.c | |
| parent | hwmon: mlxreg-fan: Prevent fans from getting stuck at 0 RPM (diff) | |
| download | kernel-98fd069dd87386d87eaf439e3c7b5767618926d2.tar.gz kernel-98fd069dd87386d87eaf439e3c7b5767618926d2.zip | |
hwmon: (ina238) Correctly clamp temperature
ina238_write_temp() 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: 0d9f596b1fe3 ("hwmon: (ina238) Modify the calculation formula to adapt to different chips")
Signed-off-by: Chris Packham <[email protected]>
Link: https://lore.kernel.org/r/[email protected]
Signed-off-by: Guenter Roeck <[email protected]>
Diffstat (limited to 'lib/debugobjects.c')
0 files changed, 0 insertions, 0 deletions
