Skip to content
Snippets Groups Projects
Commit 8ba75b20 authored by Josh Lehan's avatar Josh Lehan Committed by Guenter Roeck
Browse files

hwmon: (pmbus/core) Use s64 instead of long for calculations


Using s64 type, instead of long type, for internal calculations and for
the sysfs interface.

This allows 64-bit values to appear correctly on 32-bit kernels.
As wattage is reported in microwatts, monitoring a power supply over
2KW requires this.

Although it may seem unlikely to run a 32-bit kernel on such a large
machine, enterprise servers often include a BMC, and the BMC might be
running a 32-bit kernel.

Signed-off-by: default avatarJosh Lehan <krellan@google.com>
[groeck: Removed Change-Id and other tags, reformatted description]
Signed-off-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent 5c9353f5
No related branches found
No related tags found
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment