Skip to contentSkip to conversation

gpio: rename pca9539 driver

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

lore
Share & tools
lore
#0 lore raw

PATCH 1/3 gpio: rename pca9539 driver

From: Guennadi Liakhovetski <[email protected]>

First part of an extension to let the pca9539 driver support more chips, starting with pca9534, pca9535, pca9536, pca9537, and pca9538.

This renames the files and modifies the Makefile.

---
 drivers/gpio/Makefile       |    2 
 drivers/gpio/pca9539.c      |  271 --------------------------------------------
 drivers/gpio/pca953x.c      |  271 ++++++++++++++++++++++++++++++++++++++++++++
 include/linux/i2c/pca9539.h |   18 --
 include/linux/i2c/pca953x.h |   18 ++
 5 files changed, 290 insertions(+), 290 deletions(-)
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)	+= pca9539.o
+obj-$(CONFIG_GPIO_PCA9539)	+= pca953x.o
 obj-$(CONFIG_GPIO_PCF857X)	+= pcf857x.o
drivers/gpio/pca9539.c deleted +0 -271

271 lines not on this page · raw message

drivers/gpio/pca953x.c new file +271 -0

271 lines not on this page · raw message

include/linux/i2c/pca9539.h deleted +0 -18
@@ -1,18 +0,0 @@
-/* platform data for the PCA9539 16-bit I/O expander driver */
-
-struct pca9539_platform_data {
-	/* number of the first GPIO */
-	unsigned	gpio_base;
-
-	/* initial polarity inversion setting */
-	uint16_t	invert;
-
-	void		*context;	/* param to setup/teardown */
-
-	int		(*setup)(struct i2c_client *client,
-				unsigned gpio, unsigned ngpio,
-				void *context);
-	int		(*teardown)(struct i2c_client *client,
-				unsigned gpio, unsigned ngpio,
-				void *context);
-};
include/linux/i2c/pca953x.h new file +18 -0
@@ -0,0 +1,18 @@
+/* platform data for the PCA9539 16-bit I/O expander driver */
+
+struct pca9539_platform_data {
+	/* number of the first GPIO */
+	unsigned	gpio_base;
+
+	/* initial polarity inversion setting */
+	uint16_t	invert;
+
+	void		*context;	/* param to setup/teardown */
+
+	int		(*setup)(struct i2c_client *client,
+				unsigned gpio, unsigned ngpio,
+				void *context);
+	int		(*teardown)(struct i2c_client *client,
+				unsigned gpio, unsigned ngpio,
+				void *context);
+};