From 4aa9c6376cbbedbbfc8cb4f3caf98a25fc3b4422 Mon Sep 17 00:00:00 2001 From: Frodo Looijaard Date: Sun, 6 Dec 1998 23:10:20 +0000 Subject: [PATCH] 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 --- kernel/busses/i2c-isa.c | 6 +++--- kernel/smbus.c | 6 +++--- src/isa.c | 6 +++--- src/smbus.c | 6 +++--- 4 files changed, 12 insertions(+), 12 deletions(-) diff --git a/kernel/busses/i2c-isa.c b/kernel/busses/i2c-isa.c index 061acb45..1a5daf91 100644 --- a/kernel/busses/i2c-isa.c +++ b/kernel/busses/i2c-isa.c @@ -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. diff --git a/kernel/smbus.c b/kernel/smbus.c index ddd7ba3b..c0fa8a51 100644 --- a/kernel/smbus.c +++ b/kernel/smbus.c @@ -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. diff --git a/src/isa.c b/src/isa.c index 061acb45..1a5daf91 100644 --- a/src/isa.c +++ b/src/isa.c @@ -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. diff --git a/src/smbus.c b/src/smbus.c index ddd7ba3b..c0fa8a51 100644 --- a/src/smbus.c +++ b/src/smbus.c @@ -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.