]> 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>
Wed, 14 Sep 2011 11:07:58 +0000 (04:07 -0700)
commit50ce09a76d4f251b7a3747210aa2fe5b5955931f
treea6441be8cf20bf42ff60fc4a6b1f275e117529f5
parent716401903cc585cdb7e6640d2d5f16c44829a616
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