From 13dc53b49c5a0b428a8a64557f4e42f8a3890426 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Sat, 27 May 2000 14:58:48 +0000 Subject: [PATCH] (mds) wrap a printk with #ifdef DEBUG; change address upper limit to 0x2e. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@818 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/adm1025.c | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/kernel/chips/adm1025.c b/kernel/chips/adm1025.c index 9a144910..f8681086 100644 --- a/kernel/chips/adm1025.c +++ b/kernel/chips/adm1025.c @@ -48,7 +48,7 @@ /* Addresses to scan */ static unsigned short normal_i2c[] = { SENSORS_I2C_END }; -static unsigned short normal_i2c_range[] = { 0x2c, 0x2f, SENSORS_I2C_END }; +static unsigned short normal_i2c_range[] = { 0x2c, 0x2e, SENSORS_I2C_END }; static unsigned int normal_isa[] = { SENSORS_ISA_END }; static unsigned int normal_isa_range[] = { SENSORS_ISA_END }; @@ -522,7 +522,9 @@ void adm1025_update_client(struct i2c_client *client) } data->temp = adm1025_read_value(client, ADM1025_REG_TEMP); - printk("The temp is %2x\n",data->temp); +#ifdef DEBUG + printk("The temp is %2x\n",data->temp); +#endif data->temp_max = adm1025_read_value(client, ADM1025_REG_TEMP_HIGH); data->temp_min =