diff options
| author | Chris Packham <chris.packham@alliedtelesis.co.nz> | 2025-08-29 15:05:10 +1200 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2025-09-09 19:02:37 +0200 |
| commit | db936356012c707c57748fb4145ee2ec431117ec (patch) | |
| tree | 3b4ffe2463bae179e50630268dde47683bba369a /include/net/aligned_data.h | |
| parent | 71895f8bc84a213bbd7f32089890f54b3c82b0a8 (diff) | |
hwmon: (ina238) Correctly clamp temperature
[ Upstream commit 98fd069dd87386d87eaf439e3c7b5767618926d2 ]
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 <chris.packham@alliedtelesis.co.nz>
Link: https://lore.kernel.org/r/20250829030512.1179998-3-chris.packham@alliedtelesis.co.nz
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Signed-off-by: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'include/net/aligned_data.h')
0 files changed, 0 insertions, 0 deletions
