From ea0fbfcad74a50a8cb37860abeb775f2dfcf5cd9 Mon Sep 17 00:00:00 2001 From: "Mark D. Studebaker" Date: Mon, 24 Jun 2002 02:28:41 +0000 Subject: [PATCH] returned address bug - thanks Dori git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1402 7894878c-1315-0410-8ee3-d5d059ff63e0 --- kernel/chips/smbus-arp.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/kernel/chips/smbus-arp.c b/kernel/chips/smbus-arp.c index 65ac0827..8b628edb 100644 --- a/kernel/chips/smbus-arp.c +++ b/kernel/chips/smbus-arp.c @@ -353,17 +353,17 @@ int smbusarp_init_client(struct i2c_client *client) } /* check device slave addr */ - addr = blk[17]; + addr = blk[16]; if(addr != 0xFF) { addr >>= 1; if(blk[0] & 0xC0) { if(data->address_pool[addr] == ARP_FREE) { #ifdef DEBUG - printk(KERN_DEBUG " Free Non-fixed Address 0x%02x\n", addr); + printk(KERN_DEBUG " Requested free Non-fixed Address 0x%02x\n", addr); #endif } else { #ifdef DEBUG - printk(KERN_DEBUG " Taken Non-fixed Address 0x%02x\n", addr); + printk(KERN_DEBUG " Requested busy Non-fixed Address 0x%02x\n", addr); #endif if((addr = choose_addr(data->address_pool)) ==