summary refs log tree commit diff
path: root/drivers/hwmon/ds620.c
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-01-16 10:31:32 -0800
committerGuenter Roeck <linux@roeck-us.net>2013-02-06 09:58:03 -0800
commitaebcbbfc4955929286a15a04592a2281d3e527db (patch)
treedf81ac0ca3cb59b0c38b8fabc8ae569725c1f393 /drivers/hwmon/ds620.c
parent85cfb3a83536ad7f055b45f3a9c227848fa4dc80 (diff)
downloadlinux-aebcbbfc4955929286a15a04592a2281d3e527db.tar.gz
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/hwmon/ds620.c')
0 files changed, 0 insertions, 0 deletions