hwmon: (pmbus) Use 64bit math for DIRECT format values
authorRobert Lippert <roblip@gmail.com>
Mon, 27 Nov 2017 23:51:55 +0000 (15:51 -0800)
committerGuenter Roeck <linux@roeck-us.net>
Tue, 28 Nov 2017 04:29:22 +0000 (20:29 -0800)
commitbd467e4eababe4c04272c1e646f066db02734c79
treec0a485e360a00fa99ce2d5aa9be80f9fbcc57e97
parented81cc612c92167fe7606773e036ee5ccef6c190
hwmon: (pmbus) Use 64bit math for DIRECT format values

Power values in the 100s of watt range can easily blow past
32bit math limits when processing everything in microwatts.

Use 64bit math instead to avoid these issues on common 32bit ARM
BMC platforms.

Fixes: 442aba78728e ("hwmon: PMBus device driver")
Signed-off-by: Robert Lippert <rlippert@google.com>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
drivers/hwmon/pmbus/pmbus_core.c