Kill useless ALARMS_FROM_REG macro. This is a backport from

Linux 2.6.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2948 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Jean Delvare committed 2005-03-27 11:56:29 +00:00
1 parent 24c4f308b4
commit 506fee471d
1 file changed
+1 -3
+1 -3
View File
@@ -103,8 +103,6 @@ static inline long TEMP_FROM_REG(u16 temp)
((val)+50)/100), \
0,255)
#define ALARMS_FROM_REG(val) (val)
#define DIV_FROM_REG(val) (1 << (val))
#define DIV_TO_REG(val) ((val)==8?3:(val)==4?2:(val)==1?0:1)
@@ -547,7 +545,7 @@ void lm80_alarms(struct i2c_client *client, int operation, int ctl_name,
*nrels_mag = 0;
else if (operation == SENSORS_PROC_REAL_READ) {
lm80_update_client(client);
results[0] = ALARMS_FROM_REG(data->alarms);
results[0] = data->alarms;
*nrels_mag = 1;
}
}