Minor fixes

* /proc/bus/i2c printed garbage if more than one adapter was registered
* There was a double line in piix4.c in the delay function


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

No files matched your search

-1
View File
@@ -193,7 +193,6 @@ END:
/* Internally used pause function */
void piix4_do_pause( unsigned int amount )
{
current->state = TASK_INTERRUPTIBLE;
current->state = TASK_INTERRUPTIBLE;
schedule_timeout(amount);
}
+1 -2
View File
@@ -235,7 +235,7 @@ int read_bus_i2c(char *buf, char **start, off_t offset, int len, int unused)
len = 0;
for (i = 0; i < I2C_ADAP_MAX; i++)
if (i2cproc_adapters[i])
len += sprintf(buf, "i2c-%d\t%s\t%-32s\t%-32s\n",i,
len += sprintf(buf+len, "i2c-%d\t%s\t%-32s\t%-32s\n",i,
i2c_is_smbus_adapter(i2cproc_adapters[i])?"smbus":
#ifdef DEBUG
i2c_is_isa_adapter(i2cproc_adapters[i])?"isa":
@@ -385,7 +385,6 @@ int i2cproc_detach_client(struct i2c_client *client)
char name[8];
#endif /* (LINUX_VERSION_CODE >= KERNEL_VERSION(2,1,29)) */
printk("OK!\n");
#ifndef DEBUG
if (i2c_is_isa_client(client))
return 0;