hwmon: (f71805f) Fix clamping of temperature limits

Properly clamp temperature limits set by the user. Without this fix,
attempts to write temperature limits above the maximum supported by
the chip (255 degrees Celsius) would arbitrarily and unexpectedly
result in the limit being set to 0 degree Celsius.

Signed-off-by: Jean Delvare <[email protected]>
Cc: [email protected]
Signed-off-by: Guenter Roeck <[email protected]>
1 file changed