hwmon: (pmbus_core) Simplify sign extensions
authorGuenter Roeck <guenter.roeck@ericsson.com>
Wed, 28 Sep 2011 18:36:20 +0000 (11:36 -0700)
committerGuenter Roeck <guenter.roeck@ericsson.com>
Mon, 24 Oct 2011 18:09:44 +0000 (11:09 -0700)
commit1af1f5313cfea85a185c7bbb5258f7856fc8fea7
treeacc73abb589337fec213c175a077edd8b743a994
parentbc365a7f3c0d5b5b2a642e6646098b306b6faa4d
hwmon: (pmbus_core) Simplify sign extensions

Shift operations can be used for sign extensions. Use it.

Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com>
Reviewed-by: Robert Coulson <robert.coulson@ericsson.com>
drivers/hwmon/pmbus/pmbus_core.c