mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-10-18 11:09:32 +00:00
returned address bug - thanks Dori
git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1402 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
510dbdbbd5
commit
ea0fbfcad7
1 file changed
+3
-3
@@ -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)) ==
|
||||
|
||||
Reference in new issue
Block a user