Changeset 74

Show
Ignore:
Timestamp:
12/13/98 15:03:28 (14 years ago)
Author:
frodo
Message:

Winbond-over-SMBus addition

Location:
lm-sensors/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • lm-sensors/trunk/kernel/chips/lm78.c

    r70 r74  
    449449       adapter, and check whether they are used here */ 
    450450 
    451     if (smbus_read_byte_data(adapter,address,LM78_REG_CONFIG) == 0xff)  
     451    if (smbus_read_byte_data(adapter,address,LM78_REG_CONFIG) < 0)  
    452452      continue; 
    453453 
     
    465465      client_name = "LM78-J chip"; 
    466466    } else if (err == 0x80) { 
     467      type = lm79; 
     468      type_name = "lm79"; 
     469      client_name = "LM79 chip"; 
     470    } else if (err == 0x02) { 
     471      printk("lm78.o: Warning: Winbond W83781D detected (treated as a LM79)\n"); 
    467472      type = lm79; 
    468473      type_name = "lm79"; 
  • lm-sensors/trunk/src/lm78.c

    r70 r74  
    449449       adapter, and check whether they are used here */ 
    450450 
    451     if (smbus_read_byte_data(adapter,address,LM78_REG_CONFIG) == 0xff)  
     451    if (smbus_read_byte_data(adapter,address,LM78_REG_CONFIG) < 0)  
    452452      continue; 
    453453 
     
    465465      client_name = "LM78-J chip"; 
    466466    } else if (err == 0x80) { 
     467      type = lm79; 
     468      type_name = "lm79"; 
     469      client_name = "LM79 chip"; 
     470    } else if (err == 0x02) { 
     471      printk("lm78.o: Warning: Winbond W83781D detected (treated as a LM79)\n"); 
    467472      type = lm79; 
    468473      type_name = "lm79";