hwmon: (lm95241) Use more accurate limits
authorGuenter Roeck <linux@roeck-us.net>
Mon, 4 Jul 2016 15:27:38 +0000 (08:27 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Fri, 9 Sep 2016 04:34:14 +0000 (21:34 -0700)
commit637ab157d4a94145a6c9b89113222b6c80fab54c
tree52f89c7dff3443ca50f071ddcadc6e857c910579
parente8172a9381f33b6a4b16871b9149171e0113bfde
hwmon: (lm95241) Use more accurate limits

The lower temperature limit is -128 degrees C. The supported upper limits
are 127.875 or 255.875 degrees C. Also, don't fail if a value outside
the supported range is provided when setting a temperature limit.
Instead, clamp the provided value to the available value range.

Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/lm95241.c