hwmon: (pmbus/lm25066) Offset coefficient depends on CL
authorXo Wang <xow@google.com>
Tue, 29 Aug 2017 21:21:16 +0000 (14:21 -0700)
committerGuenter Roeck <linux@roeck-us.net>
Wed, 30 Aug 2017 13:31:12 +0000 (06:31 -0700)
commitee983171d49b4b5c957d3f94c68ee1fd7a007281
tree1143269c00180df158be2f1b454a3743d374cb0e
parentd4977c083aeb28cf72c1b019e3f9df13608126dd
hwmon: (pmbus/lm25066) Offset coefficient depends on CL

When converting the DIRECT format CURRENT_IN and POWER commands, make
the offset coefficient ("b") predicate on the value of the current limit
setting.

Signed-off-by: Xo Wang <xow@google.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/lm25066.c