From: Rasmus Villemoes Date: Thu, 22 Jan 2015 22:44:14 +0000 (+0100) Subject: hwmon: (adc128d818) Do proper sign extension X-Git-Tag: omap-for-v4.1/prcm-dts-mfd-syscon-fix~170^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2c3b1189fdca2f512187a670aeb295f901c10d87;p=pandora-kernel.git hwmon: (adc128d818) Do proper sign extension data->temp[index] has type s16. Because of C's promotion rules, (data->temp[index] << 7) >> 7 is exactly the same as data->temp[index]. The intention was to use bit 8 as a sign bit, so do that using the existing API. Signed-off-by: Rasmus Villemoes Signed-off-by: Guenter Roeck --- Reading git-diff-tree failed