mirror of
https://github.com/lm-sensors/lm-sensors.git
synced 2026-11-21 19:51:45 +00:00
(mds)
From: Aurelien Jarno <aurelien@aurel32.net> Hello, I have to use the pcf8574 chip with my I2C interface, however, the pcf8574 drivers in lm-sensors is a bit basic. It supposes the pin P1 is used as an input and the others pin as outputs. Attached is a patch which corrects that, providing to files in /proc interface, one for writting, the other for reading. It also modifies a bit the driver to support the pcf8574a (it is a pcf8574 with a different address range), and add a documentation file in doc/chips. The patch also includes some cosmetic changes in the pcf8591 driver I wrote previously, that is to say it modify the chip name in some places I had forgotten to change when I made a copy/paste from another driver. git-svn-id: http://lm-sensors.org/svn/lm-sensors/trunk@1318 7894878c-1315-0410-8ee3-d5d059ff63e0
This commit is contained in:
1 parent
877bf15087
commit
0442f73da9
6 files changed
+161
-29
No files matched your search
@@ -200,7 +200,7 @@ int pcf8591_detect(struct i2c_adapter *adapter, int address,
|
||||
#ifdef DEBUG
|
||||
if (i2c_is_isa_adapter(adapter)) {
|
||||
printk
|
||||
(KERN_ERR "pcf8574.o: pcf8574_detect called for an ISA bus adapter?!?\n");
|
||||
(KERN_ERR "pcf8591.o: pcf8591_detect called for an ISA bus adapter?!?\n");
|
||||
return 0;
|
||||
}
|
||||
#endif
|
||||
@@ -224,7 +224,7 @@ int pcf8591_detect(struct i2c_adapter *adapter, int address,
|
||||
new_client->driver = &pcf8591_driver;
|
||||
new_client->flags = 0;
|
||||
|
||||
/* Now, we would do the remaining detection. But the PCF8574 is plainly
|
||||
/* Now, we would do the remaining detection. But the PCF8591 is plainly
|
||||
impossible to detect! Stupid chip. */
|
||||
|
||||
/* Determine the chip type - only one kind supported! */
|
||||
|
||||
Reference in new issue
Block a user