hwmon: (emc2103) Clamp limits instead of bailing out
authorGuenter Roeck <linux@roeck-us.net>
Sun, 6 Jul 2014 18:39:24 +0000 (11:39 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 7 Jul 2014 14:15:31 +0000 (07:15 -0700)
commitf6c2dd20108c35e30e2c1f3c6142d189451a626b
tree85f480798ada89cfdc556c3863b653902eaae725
parent145e74a4e5022225adb84f4e5d4fff7938475c35
hwmon: (emc2103) Clamp limits instead of bailing out

It is customary to clamp limits instead of bailing out with an error
if a configured limit is out of the range supported by the driver.
This simplifies limit configuration, since the user will not typically
know chip and/or driver specific limits.

Reviewed-by: Jean Delvare <jdelvare@suse.de>
Cc: stable@vger.kernel.org
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/emc2103.c