diff options
author | Guenter Roeck <linux@roeck-us.net> | 2014-07-06 11:39:24 -0700 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2014-07-07 07:15:31 -0700 |
commit | f6c2dd20108c35e30e2c1f3c6142d189451a626b (patch) | |
tree | 85f480798ada89cfdc556c3863b653902eaae725 /drivers/hwmon/vexpress.c | |
parent | 145e74a4e5022225adb84f4e5d4fff7938475c35 (diff) |
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>
Diffstat (limited to 'drivers/hwmon/vexpress.c')
0 files changed, 0 insertions, 0 deletions