Skip to contentSkip to conversation

New chip driver: pcf8574

PATCH New Aurelien Jarno 2 participants 2 messages May 19, 2005

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 New chip driver: pcf8574

Oops, I send a patch to Greg KH and I forgot to copy the lm-sensors list. Please find below the mail I sent to him.

Sorry for all.

----- Original Message -----
From: Aurelien Jarno <[email protected]>
To: Greg KH <[email protected]>
Sent: Thu, 18 Mar 2004 23:37:37 +0100
Subject: [PATCH 2.6] New chip driver: pcf8574

Hi Greg,

Please find below a patch against kernel 2.6.5-rc1 to add the pcf8574 driver (an I/O expander for the I2C bus). I have ported it from the 2.4 version, and it includes some fixes and simplifications.

It has been reviewed by Jean Delvare on IRC.

Thanks,
Aurelien

drivers/i2c/chips/Kconfig +11 -0
diff -urN linux-2.6.5-rc1.orig/drivers/i2c/chips/Kconfig linux-2.6.5-rc1/drivers/i2c/chips/Kconfig
@@ -209,4 +209,15 @@
 	  This driver can also be built as a module.  If so, the module
 	  will be called eeprom.
 
+config SENSORS_PCF8574
+	tristate "Philips PCF8574 and PCF8574A"
+	depends on I2C && EXPERIMENTAL
+	select I2C_SENSOR
+	help
+	  If you say yes here you get support for Philips PCF8574 and 
+	  PCF8574A chips.
+
+	  This driver can also be built as a module. If so, the module
+	  will be called pcf8574.
+
 endmenu
drivers/i2c/chips/Makefile +1 -0
diff -urN linux-2.6.5-rc1.orig/drivers/i2c/chips/Makefile linux-2.6.5-rc1/drivers/i2c/chips/Makefile
@@ -19,6 +19,7 @@
 obj-$(CONFIG_SENSORS_LM83)	+= lm83.o
 obj-$(CONFIG_SENSORS_LM85)	+= lm85.o
 obj-$(CONFIG_SENSORS_LM90)	+= lm90.o
+obj-$(CONFIG_SENSORS_PCF8574)	+= pcf8574.o
 obj-$(CONFIG_SENSORS_VIA686A)	+= via686a.o
 obj-$(CONFIG_SENSORS_W83L785TS)	+= w83l785ts.o
 
drivers/i2c/chips/pcf8574.c +245 -0

245 lines not on this page · raw message

Applied
#1 lore raw

PATCH 1/1 New chip driver: pcf8574

Quoted 11 lines · Aurelien Jarno

Oops, I send a patch to Greg KH and I forgot to copy the lm-sensors list. Please find below the mail I sent to him.

Sorry for all.

----- Original Message -----
From: Aurelien Jarno <[email protected]>
To: Greg KH <[email protected]>
Sent: Thu, 18 Mar 2004 23:37:37 +0100
Subject: [PATCH 2.6] New chip driver: pcf8574

Quoted 5 lines

Hi Greg,

Please find below a patch against kernel 2.6.5-rc1 to add the pcf8574 driver (an I/O expander for the I2C bus). I have ported it from the 2.4 version, and it includes some fixes and simplifications.

Applied to my trees, thanks.

greg k-h