Made the ISA/SMBus code shut up if DEBUG is off and things try to

access unimplementable functionality. And removed a #if which could never
become true anyway from i2c-proc.c.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@67 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1998-12-11 02:16:59 +00:00
1 parent bc8bc74784
commit ea315df1c3
6 files changed
+24 -6

No files matched your search

+6
View File
@@ -75,28 +75,34 @@ static int isa_initialized;
int isa_master_xfer (struct isa_adapter *adap, struct i2c_msg msgs[],
int num)
{
#ifdef DEBUG
printk("isa.o: isa_master_xfer called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return -1;
#endif
}
/* Algorithm slave_send call-back implementation. Can't do that... */
int isa_slave_send (struct isa_adapter *adap, char *data, int len)
{
#ifdef DEBUG
printk("isa.o: isa_slave_send called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return -1;
#endif
}
/* Algorithm slave_recv call-back implementation. Can't do that... */
int isa_slave_recv (struct isa_adapter *adap, char *data, int len)
{
#ifdef DEBUG
printk("isa.o: isa_slave_recv called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return -1;
#endif
}
/* Here we can put additional calls to modify the workings of the algorithm.