hwmon: (pmbus) Use long variables for register to data conversions
authorGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 11 Jul 2011 02:31:29 +0000 (19:31 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Tue, 12 Jul 2011 13:45:45 +0000 (06:45 -0700)
commitf450c1504d3ff6aace3927c805bdea0ac0669efd
treea12038dc7638dfe4cb7fee745aff259e8857104c
parent620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc
hwmon: (pmbus) Use long variables for register to data conversions

Using integer variable types for register to data conversions can cause
overflows especially for power calculations, which are in microwatt.
Use long variables instead.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Acked-by: Jean Delvare <khali@linux-fr.org>
Cc: stable@kernel.org # 2.6.39+
drivers/hwmon/pmbus_core.c