mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-30 13:00:30 +00:00
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:
1 parent
24c4f308b4
commit
506fee471d
1 file changed
+1
-3
+1
-3
@@ -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;
|
||||
}
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user