From 4319123b2846b72886929e2610f855f1bddba5c0 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Wed, 26 Jan 2000 16:16:53 +0000 Subject: [PATCH] GL518SM buglet fixed Initially, random values were put in the voltage registers. If iterate was left at 0, these random values were put in /proc. Solution: initialize voltage[0..2] with 0. Frodo git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@709 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/gl518sm.c | 1 + 1 file changed, 1 insertion(+) diff --git a/kernel/chips/gl518sm.c b/kernel/chips/gl518sm.c index 97a63278..7f89808c 100644 --- a/kernel/chips/gl518sm.c +++ b/kernel/chips/gl518sm.c @@ -417,6 +417,7 @@ static int gl518_detect(struct i2c_adapter *adapter, int address, data->quit_thread = 0; data->thread = NULL; data->alarm_mask = 0xff; + data->voltage[0]=data->voltage[1]=data->voltage[2]=0; gl518_init_client((struct i2c_client *) new_client); return 0;