diff options
author | Guenter Roeck <linux@roeck-us.net> | 2013-01-16 19:31:32 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2013-02-06 18:58:03 +0100 |
commit | aebcbbfc4955929286a15a04592a2281d3e527db (patch) | |
tree | df81ac0ca3cb59b0c38b8fabc8ae569725c1f393 /drivers/gpio/gpio-rc5t583.c | |
parent | hwmon: (pmbus) Use krealloc to allocate attribute memory (diff) | |
download | linux-aebcbbfc4955929286a15a04592a2281d3e527db.tar.xz linux-aebcbbfc4955929286a15a04592a2281d3e527db.zip |
hwmon: (pmbus) Add support for additional voltage sensor
Some PMBus chips support monitoring an additional non-standard voltage. While
this voltage can in many cases be supported by simulating an additional sensor
page, this does not work in all cases. Specifically, it is problematic if the
data format is linear and the voltage is reported in LINEAR11 format. Since
output voltages use LINEAR16, and the exponent for LINEAR16 data is chip-wide
and fixed, this can result in overflows.
To solve this problem, add support for an additional virtual input voltage,
call it 'vmon', and treat this voltage as input voltage (which, when the chip
supports linear data format, uses LINEAR11).
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'drivers/gpio/gpio-rc5t583.c')
0 files changed, 0 insertions, 0 deletions