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
This commit is contained in:
Jean Delvare committed 2005-10-30 10:34:16 +00:00
1 parent 32b69ce2f0
commit 6ce664e2ec
1 file changed
+2 -2
+2 -2
View File
@@ -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;
};
/*