Skip to content
Commit de12d6f4 authored by Guenter Roeck's avatar Guenter Roeck
Browse files

hwmon: (adt7470) Fix writes to temperature limit registers



Temperature limit registers are signed. Limits therefore need
to be clamped to (-128, 127) degrees C and not to (0, 255)
degrees C.

Without this fix, writing a limit of 128 degrees C sets the
actual limit to -128 degrees C.

Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
Cc: stable@vger.kernel.org
Reviewed-by: default avatarAxel Lin <axel.lin@ingics.com>
parent 6b00f440
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment