]> git.karo-electronics.de Git - karo-tx-linux.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)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 3 Feb 2012 17:26:57 +0000 (09:26 -0800)
commitb67cbf2deeb8198972d4d19da61ed3fc949388d6
tree805f04c12d40953e95bc0acc650ffdbe70c88ced
parent2b93e1fde1b44ed8941e946515ecf10eb15a5a96
hwmon: (f71805f) Fix clamping of temperature limits

commit 86b2bbfdbd1fcc4a3aa62ccd3f245c40c5ad5b85 upstream.

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>
Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/hwmon/f71805f.c