From 6ce664e2ec393c5fac2d55fc332e312d5f2832e9 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Sun, 30 Oct 2005 10:34:16 +0000 Subject: [PATCH] Using s8 instead of u8 to store temperature register values saves a few instructions (backport from Linux 2.6). git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@3152 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/w83l785ts.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/kernel/chips/w83l785ts.c b/kernel/chips/w83l785ts.c index 21b12198..f03d9fd4 100644 --- a/kernel/chips/w83l785ts.c +++ b/kernel/chips/w83l785ts.c @@ -76,7 +76,7 @@ SENSORS_INSMOD_1(w83l785ts); * The W83L785TS-S uses signed 8-bit values. */ -#define TEMP_FROM_REG(val) (val & 0x80 ? val-0x100 : val) +#define TEMP_FROM_REG(val) (val) /* * Functions declaration @@ -116,7 +116,7 @@ struct w83l785ts_data { unsigned long last_updated; /* in jiffies */ /* registers values */ - u8 temp, temp_over; + s8 temp, temp_over; }; /*