]> git.baikalelectronics.ru Git - kernel.git/commit
hwmon: (f71805f) Fix clamping of temperature limits
authorJean Delvare <khali@linux-fr.org>
Fri, 20 Jan 2012 15:09:23 +0000 (10:09 -0500)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 20 Jan 2012 17:05:35 +0000 (09:05 -0800)
commit8ab2af9a3e555f14ba6739de47571fde4a997b1e
tree7507ea89b03997fc955eb781f9a4347f353796bb
parent1e5ed5b4d5a9924b9ec96032051e81bc6340728e
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 <khali@linux-fr.org>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
drivers/hwmon/f71805f.c