]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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, 1 Apr 2013 17:21:01 +0000 (10:21 -0700)
commit22b9bd7b33a05534976795a5f972fc40a91a53a9
treebcf302c20d15cd61bd8fb8480b281e87449270ad
parentb33ad8e6c1a428ae9d0f583b56a69677b763abe5
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