]> git.karo-electronics.de Git - karo-tx-linux.git/commit
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)
committerGreg Kroah-Hartman <gregkh@suse.de>
Wed, 3 Aug 2011 19:42:25 +0000 (12:42 -0700)
commit10e3fcd9aa47f02694fdb33501ee2287337bf7cd
treeb6e60e8abbfb897619a059e6a5994aa139202ca0
parent41330bdffea8e1a6a5e82a23f0ed4b767226f3fd
hwmon: (pmbus) Use long variables for register to data conversions

commit f450c1504d3ff6aace3927c805bdea0ac0669efd upstream.

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>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hwmon/pmbus_core.c