hwmon: (pmbus) Support per-page exponent in linear mode
authorGuenter Roeck <linux@roeck-us.net>
Fri, 31 Jan 2014 03:51:14 +0000 (19:51 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Mon, 3 Feb 2014 05:21:40 +0000 (21:21 -0800)
commitdaa436e67cd2dcac7cbb505bb4425fdfdafaa5a7
treee61017bf92b7a4a021d362379ab3504df46b15bd
parent38dbfb59d1175ef458d006556061adeaa8751b72
hwmon: (pmbus) Support per-page exponent in linear mode

Some chips use different exponents for sensors on different pages
or rails. Detect and store exponent per page to support this situation.

This fixes a problem with wrong voltages seen on UCD90120.

Reported-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Tested-by: Soren Brinkmann <soren.brinkmann@xilinx.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c