summaryrefslogtreecommitdiffstats
path: root/drivers/scsi/libsas
diff options
context:
space:
mode:
authorGuenter Roeck <linux@roeck-us.net>2013-01-16 19:31:32 +0100
committerGuenter Roeck <linux@roeck-us.net>2013-02-06 18:58:03 +0100
commitaebcbbfc4955929286a15a04592a2281d3e527db (patch)
treedf81ac0ca3cb59b0c38b8fabc8ae569725c1f393 /drivers/scsi/libsas
parenthwmon: (pmbus) Use krealloc to allocate attribute memory (diff)
downloadlinux-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/scsi/libsas')
0 files changed, 0 insertions, 0 deletions