commit | f450c1504d3ff6aace3927c805bdea0ac0669efd | [log] [tgz] |
---|---|---|
author | Guenter Roeck <guenter.roeck@ericsson.com> | Sun Jul 10 19:31:29 2011 -0700 |
committer | Guenter Roeck <guenter.roeck@ericsson.com> | Tue Jul 12 06:45:45 2011 -0700 |
tree | a12038dc7638dfe4cb7fee745aff259e8857104c | |
parent | 620917de59eeb934b9f8cf35cc2d95c1ac8ed0fc [diff] |
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+