Fixed some more bugs

* PIIX4: better names in /proc files
* sensors.c: fixed bug which prevented registration of non-ISA clients

Status:
* lm75 inserts happily and interacts with the PIIX4 correctly
* lm75 readings are still wrong (all 0xff)
* lm75 insertion with ISA bus present causes oops


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@39 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1998-12-05 16:36:47 +00:00
1 parent 61d74f13e0
commit e0484650ef
6 files changed
+6 -14

No files matched your search

+1 -1
View File
@@ -68,7 +68,7 @@ int sensors_create_name(char **name, const char *prefix,
if (i2c_is_isa_adapter(adapter))
sprintf(name_buffer,"%s-isa-%04x",prefix,addr);
else {
if ((id = i2c_adapter_id(adapter)) < 0);
if ((id = i2c_adapter_id(adapter)) < 0)
return -ENOENT;
sprintf(name_buffer,"%s-i2c-%d-%02x",prefix,id,addr);
}