]> git.baikalelectronics.ru Git - kernel.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, 8 Apr 2013 04:16:41 +0000 (21:16 -0700)
commitaffead38cbda2e7fe9d861ee584d4eba83a6109b
tree2bd25baa3f298c247ad3c55769a9e78403837aaf
parent6285f7fafa15a469f107da9d361a7da95f64c120
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