Start of i2c-bus, a module for displaying i2c bus information in /proc

Nothing much here yet, except some code to create /proc/bus/i2c. Should work
for kernels 2.0 and 2.1 (please test).

Other notable things:
  printk statements in all modules made to have to same 'look'.


git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@15 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
Frodo Looijaard committed 1998-11-27 00:26:51 +00:00
1 parent 4d0ef54c3c
commit c26eff1184
13 files changed
+332 -34

No files matched your search

+8 -8
View File
@@ -75,7 +75,7 @@ static int isa_initialized;
int isa_master_xfer (struct isa_adapter *adap, struct i2c_msg msgs[],
int num)
{
printk("isa_master_xfer called for adapter `%s' "
printk("isa.o: isa_master_xfer called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
@@ -84,7 +84,7 @@ int isa_master_xfer (struct isa_adapter *adap, struct i2c_msg msgs[],
/* Algorithm slave_send call-back implementation. Can't do that... */
int isa_slave_send (struct isa_adapter *adap, char *data, int len)
{
printk("isa_slave_send called for adapter `%s' "
printk("isa.o: isa_slave_send called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
@@ -93,7 +93,7 @@ int isa_slave_send (struct isa_adapter *adap, char *data, int len)
/* Algorithm slave_recv call-back implementation. Can't do that... */
int isa_slave_recv (struct isa_adapter *adap, char *data, int len)
{
printk("isa_slave_recv called for adapter `%s' "
printk("isa.o: isa_slave_recv called for adapter `%s' "
"(no i2c level access possible!)\n",
adap->name);
return 0;
@@ -131,7 +131,7 @@ int isa_init(void)
#endif
isa_initialized = 0;
if ((res = isa_add_algorithm(&isa_algorithm))) {
printk("isa.o: Algorithm registration failed, module isa.o not inserted\n");
printk("isa.o: Algorithm registration failed, module not inserted.\n");
isa_cleanup();
return res;
}
@@ -141,12 +141,12 @@ int isa_init(void)
isa_adapter.algo = &isa_algorithm;
if ((res = isa_add_adapter(&isa_adapter))) {
printk("isa.o: Adapter registration failed, "
"module isa.o is not inserted\n");
"module isa.o is not inserted\n.");
isa_cleanup();
return res;
}
isa_initialized++;
printk("isa.o: ISA bus access for i2c modules initialized\n");
printk("isa.o: ISA bus access for i2c modules initialized.\n");
return 0;
}
@@ -156,7 +156,7 @@ int isa_cleanup(void)
if (isa_initialized >= 2)
{
if ((res = isa_del_adapter(&isa_adapter))) {
printk("isa.o: isa_del_adapter failed, module not removed\n");
printk("isa.o: Adapter deregistration failed, module not removed.\n");
return res;
} else
isa_initialized--;
@@ -164,7 +164,7 @@ int isa_cleanup(void)
if (isa_initialized >= 1)
{
if ((res = isa_del_algorithm(&isa_algorithm))) {
printk("isa.o: isa_del_algorithm failed, module not removed\n");
printk("isa.o: Algorithm deregistration failed, module not removed.\n");
return res;
} else
isa_initialized--;
+2 -2
View File
@@ -65,7 +65,7 @@ int piix4_init(void)
#endif
piix4_initialized = 0;
if ((res = piix4_setup())) {
printk("piix4.o: PIIX4 not detected, module not inserted\n");
printk("piix4.o: PIIX4 not detected, module not inserted.\n");
piix4_cleanup();
return res;
}
@@ -75,7 +75,7 @@ int piix4_init(void)
piix4_adapter.algo = &smbus_algorithm;
piix4_adapter.smbus_access = &piix4_access;
if ((res = smbus_add_adapter(&piix4_adapter))) {
printk("piix4.o: smbus_add_adapter failed, module not inserted\n");
printk("piix4.o: Adapter registration failed, module not inserted.\n");
piix4_cleanup();
return res;
}