hwmon: (pmbus) Add support for peak attributes
commit6f183d33a02e686608f708ef713b6423db39bcba
authorGuenter Roeck <guenter.roeck@ericsson.com>
Sat, 9 Jul 2011 15:30:26 +0000 (9 08:30 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Fri, 29 Jul 2011 00:09:32 +0000 (28 17:09 -0700)
treee2571fe569000af44818a914325e13edb8072f9a
parent0084e9faabbc1e228fda9c8a78ef1ea8ee97a9ae
hwmon: (pmbus) Add support for peak attributes

Most PMBus devices provide manufacturer specific commands to read low and/or
high peak values for some or all of its sensors.

To support providing those values as lowest/highest attributes to the user,
introduce virtual PMBus commands. Those commands reside outside the normal
command set and have to be implemented in device specific code, which map the
virtual commands to device specific commands.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/pmbus/pmbus.h
drivers/hwmon/pmbus/pmbus_core.c