From 57d7f9c0ef191d7180d59f6d0a05667b6e3d39c4 Mon Sep 17 00:00:00 2001 From: Jean Delvare Date: Thu, 25 Mar 2004 19:05:40 +0000 Subject: [PATCH] Do not initialize more bits than needed. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@2391 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/adm1021.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/kernel/chips/adm1021.c b/kernel/chips/adm1021.c index 091d8c1e..2dc1cea3 100644 --- a/kernel/chips/adm1021.c +++ b/kernel/chips/adm1021.c @@ -331,7 +331,8 @@ static int adm1021_detect(struct i2c_adapter *adapter, int address, static void adm1021_init_client(struct i2c_client *client) { /* Enable ADC and disable suspend mode */ - adm1021_write_value(client, ADM1021_REG_CONFIG_W, 0); + adm1021_write_value(client, ADM1021_REG_CONFIG_W, + adm1021_read_value(client, ADM1021_REG_CONFIG_R) & 0xBF); /* Set Conversion rate to 1/sec (this can be tinkered with) */ adm1021_write_value(client, ADM1021_REG_CONV_RATE_W, 0x04); }