Corrected small bug in isa.c and smbus.c which caused faulty lm75

chips to be registered on the ISA bus now that the I2C emulation code was
triggered.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@44 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1998-12-06 23:10:20 +00:00
1 parent 45e87b2b9e
commit 4aa9c6376c
4 files changed
+12 -12

No files matched your search

+3 -3
View File
@@ -78,7 +78,7 @@ int isa_master_xfer (struct isa_adapter *adap, struct i2c_msg msgs[],
printk("isa.o: isa_master_xfer called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Algorithm slave_send call-back implementation. Can't do that... */
@@ -87,7 +87,7 @@ int isa_slave_send (struct isa_adapter *adap, char *data, int len)
printk("isa.o: isa_slave_send called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Algorithm slave_recv call-back implementation. Can't do that... */
@@ -96,7 +96,7 @@ int isa_slave_recv (struct isa_adapter *adap, char *data, int len)
printk("isa.o: isa_slave_recv called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Here we can put additional calls to modify the workings of the algorithm.
+3 -3
View File
@@ -189,7 +189,7 @@ int smbus_master_xfer (struct smbus_adapter *adap, struct i2c_msg msgs[],
printk("smbus.o: smbus_master_xfer called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Algorithm slave_send call-back implementation. Can't do that... */
@@ -198,7 +198,7 @@ int smbus_slave_send (struct smbus_adapter *adap, char *data, int len)
printk("smbus.o: smbus_slave_send called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Algorithm slave_recv call-back implementation. Can't do that... */
@@ -207,7 +207,7 @@ int smbus_slave_recv (struct smbus_adapter *adap, char *data, int len)
printk("smbus.o: smbus_slave_recv called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Here we can put additional calls to modify the workings of the algorithm.
+3 -3
View File
@@ -78,7 +78,7 @@ int isa_master_xfer (struct isa_adapter *adap, struct i2c_msg msgs[],
printk("isa.o: isa_master_xfer called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Algorithm slave_send call-back implementation. Can't do that... */
@@ -87,7 +87,7 @@ int isa_slave_send (struct isa_adapter *adap, char *data, int len)
printk("isa.o: isa_slave_send called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Algorithm slave_recv call-back implementation. Can't do that... */
@@ -96,7 +96,7 @@ int isa_slave_recv (struct isa_adapter *adap, char *data, int len)
printk("isa.o: isa_slave_recv called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Here we can put additional calls to modify the workings of the algorithm.
+3 -3
View File
@@ -189,7 +189,7 @@ int smbus_master_xfer (struct smbus_adapter *adap, struct i2c_msg msgs[],
printk("smbus.o: smbus_master_xfer called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Algorithm slave_send call-back implementation. Can't do that... */
@@ -198,7 +198,7 @@ int smbus_slave_send (struct smbus_adapter *adap, char *data, int len)
printk("smbus.o: smbus_slave_send called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Algorithm slave_recv call-back implementation. Can't do that... */
@@ -207,7 +207,7 @@ int smbus_slave_recv (struct smbus_adapter *adap, char *data, int len)
printk("smbus.o: smbus_slave_recv called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
return -1;
}
/* Here we can put additional calls to modify the workings of the algorithm.