2
0
mirror of https://github.com/lm-sensors/lm-sensors synced 2025-08-29 21:38:17 +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:
Abraham van der Merwe 2002-07-12 08:26:16 +00:00
parent 371168b092
commit 6b65a1d7b3

View File

@ -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]);
lm92_write (client);
} else if (operation == SENSORS_PROC_REAL_INFO) {
*nrels_mag = 0;
*nrels_mag = 4;
}
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) {
lm92_read (client);
results[0] = data->alarms.high;
results[1] = data->alarms.low;
results[2] = data->alarms.crit;
*nrels_mag = 3;
results[0] = data->alarms.high || (data->alarms.low << 1) || (data->alarms.crit << 2);
*nrels_mag = 1;
} else if (operation == SENSORS_PROC_REAL_INFO) {
*nrels_mag = 0;
}