diff options
author | Rasmus Villemoes <linux@rasmusvillemoes.dk> | 2015-01-22 23:44:14 +0100 |
---|---|---|
committer | Guenter Roeck <linux@roeck-us.net> | 2015-01-25 21:24:00 -0800 |
commit | 2c3b1189fdca2f512187a670aeb295f901c10d87 (patch) | |
tree | b977b79ce3df7b3ebcff4c4e2290f2ea72600f01 /net/socket.c | |
parent | 984faa1fb9175720828bf6604f936dff3f17b995 (diff) | |
download | talos-op-linux-2c3b1189fdca2f512187a670aeb295f901c10d87.tar.gz talos-op-linux-2c3b1189fdca2f512187a670aeb295f901c10d87.zip |
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 <linux@rasmusvillemoes.dk>
Signed-off-by: Guenter Roeck <linux@roeck-us.net>
Diffstat (limited to 'net/socket.c')
0 files changed, 0 insertions, 0 deletions