hwmon: (pmbus/lm25066) Clamp limit attributes
authorGuenter Roeck <linux@roeck-us.net>
Thu, 7 Feb 2013 04:49:12 +0000 (20:49 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 8 Apr 2013 04:16:41 +0000 (21:16 -0700)
commit2507abb3a7a89fa496769f2a224585e77f5fb195
tree2bd25baa3f298c247ad3c55769a9e78403837aaf
parenta7c69118bdc8647db0e15defa9e399df21a48890
hwmon: (pmbus/lm25066) Clamp limit attributes

Limits on all supported sensors and chips have to be within 0..0x0fff,
and limits are always positive.

Clamp written values in chip driver. Also clear value cache to ensure
that the actually written value is read back and reported correctly.

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