mirror of
https://github.com/lm-sensors/lm-sensors
synced 2025-08-30 13:57:41 +00:00
Now I also know what PROC_REAL_INFO operation means.
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1448 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
@@ -199,7 +199,7 @@ static void lm92_temp (struct i2c_client *client,int operation,int ctl_name,int
|
|||||||
data->temp.hyst = PROC_TO_NATIVE (results[3]);
|
data->temp.hyst = PROC_TO_NATIVE (results[3]);
|
||||||
lm92_write (client);
|
lm92_write (client);
|
||||||
} else if (operation == SENSORS_PROC_REAL_INFO) {
|
} else if (operation == SENSORS_PROC_REAL_INFO) {
|
||||||
*nrels_mag = 0;
|
*nrels_mag = 4;
|
||||||
}
|
}
|
||||||
|
|
||||||
up (&mutex);
|
up (&mutex);
|
||||||
@@ -213,10 +213,8 @@ static void lm92_alarms (struct i2c_client *client,int operation,int ctl_name,in
|
|||||||
|
|
||||||
if (operation == SENSORS_PROC_REAL_READ) {
|
if (operation == SENSORS_PROC_REAL_READ) {
|
||||||
lm92_read (client);
|
lm92_read (client);
|
||||||
results[0] = data->alarms.high;
|
results[0] = data->alarms.high || (data->alarms.low << 1) || (data->alarms.crit << 2);
|
||||||
results[1] = data->alarms.low;
|
*nrels_mag = 1;
|
||||||
results[2] = data->alarms.crit;
|
|
||||||
*nrels_mag = 3;
|
|
||||||
} else if (operation == SENSORS_PROC_REAL_INFO) {
|
} else if (operation == SENSORS_PROC_REAL_INFO) {
|
||||||
*nrels_mag = 0;
|
*nrels_mag = 0;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user