]> git.karo-electronics.de Git - karo-tx-linux.git/commit
hwmon: (pmbus/adm1275) Add support for second current limit
authorGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 2 Aug 2011 18:08:57 +0000 (11:08 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 13 Sep 2011 13:19:40 +0000 (06:19 -0700)
commit7ca97c8a5be90d1f4d6bda15ac27341d362620e1
tree2d93e1cf876c519d6c26632b3aae9f4cb82a85c1
parent7ad129dffdea545e518b59f052a49b5a043c142d
hwmon: (pmbus/adm1275) Add support for second current limit

ADM1275 supports a second current limit, which can be configured as either lower
or upper limit. Add support for it and report it as either lower or upper
critical current limit.

Also replace error return code EINVAL for unsupported pages with ENXIO as this
is more appropriate for the observed condition.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Documentation/hwmon/adm1275
drivers/hwmon/pmbus/adm1275.c