From 6b65a1d7b34792df48d38990b8a11dca6f95524c Mon Sep 17 00:00:00 2001 From: Abraham van der Merwe Date: Fri, 12 Jul 2002 08:26:16 +0000 Subject: [PATCH] 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 --- kernel/chips/lm92.c | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/kernel/chips/lm92.c b/kernel/chips/lm92.c index 77c900df..2cf6f304 100644 --- a/kernel/chips/lm92.c +++ b/kernel/chips/lm92.c @@ -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; }