Skip to contentSkip to conversation

gpio: rename pca953x symbols

PATCH New David Brownell 1 participant 1 message Feb 1, 2008 GPIO

lore
Share & tools
lore
#0 lore raw

PATCH 2/3 gpio: rename pca953x symbols

From: Guennadi Liakhovetski <[email protected]>

This second part of an extension to support more pca953x chips renames the C and Kconfig symbols. All affected files were updated by sed, except for a couple of obvious exceptions. It also updates the Kconfig helptext.

---
 drivers/gpio/Kconfig        |   11 ++--
 drivers/gpio/Makefile       |    2 
 drivers/gpio/pca953x.c      |  110 ++++++++++++++++++++++----------------------
 include/linux/i2c/pca953x.h |    2 
 4 files changed, 63 insertions(+), 62 deletions(-)
drivers/gpio/Kconfig +6 -5
@@ -27,15 +27,16 @@ config DEBUG_GPIO
 
 comment "I2C GPIO expanders:"
 
-config GPIO_PCA9539
-	tristate "PCA9539 16-bit I/O port"
+config GPIO_PCA953X
+	tristate "PCA953x I/O ports"
 	depends on I2C
 	help
-	  Say yes here to support the PCA9539 16-bit I/O port. These
-	  parts are made by NXP and TI.
+	  Say yes here to support the PCA9534 (8-bit), PCA9535 (16-bit),
+	  PCA9536 (4-bit), PCA9537 (4-bit), PCA9538 (8-bit), and PCA9539
+	  (16-bit) I/O ports. These parts are made by NXP and TI.
 
 	  This driver can also be built as a module.  If so, the module
-	  will be called pca9539.
+	  will be called pca953x.
 
 config GPIO_PCF857X
 	tristate "PCF857x, PCA857x, and PCA967x I2C GPIO expanders"
drivers/gpio/Makefile +1 -1
@@ -5,5 +5,5 @@ ccflags-$(CONFIG_DEBUG_GPIO)	+= -DDEBUG
 obj-$(CONFIG_HAVE_GPIO_LIB)	+= gpiolib.o
 
 obj-$(CONFIG_GPIO_MCP23S08)	+= mcp23s08.o
-obj-$(CONFIG_GPIO_PCA9539)	+= pca953x.o
+obj-$(CONFIG_GPIO_PCA953X)	+= pca953x.o
 obj-$(CONFIG_GPIO_PCF857X)	+= pcf857x.o
drivers/gpio/pca953x.c +55 -55

258 lines not on this page · raw message

include/linux/i2c/pca953x.h +1 -1
@@ -1,6 +1,6 @@
 /* platform data for the PCA9539 16-bit I/O expander driver */
 
-struct pca9539_platform_data {
+struct pca953x_platform_data {
 	/* number of the first GPIO */
 	unsigned	gpio_base;