commit | bd467e4eababe4c04272c1e646f066db02734c79 | [log] [tgz] |
---|---|---|
author | Robert Lippert <roblip@gmail.com> | Mon Nov 27 15:51:55 2017 -0800 |
committer | Guenter Roeck <linux@roeck-us.net> | Mon Nov 27 20:29:22 2017 -0800 |
tree | c0a485e360a00fa99ce2d5aa9be80f9fbcc57e97 | |
parent | ed81cc612c92167fe7606773e036ee5ccef6c190 [diff] |
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>