Skip to contentSkip to conversation

gpio: adp5588 - use "unsigned" for the setup and teardown callbacks

PATCH In review Jean-Francois Dagenais 3 participants 6 messages Feb 10, 2014 – Feb 13, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/2 gpio: adp5588 - use "unsigned" for the setup and teardown callbacks

to comply with the rest of the GPIO drivers.

---
 include/linux/i2c/adp5588.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/i2c/adp5588.h +2 -2
index d8341cb..c215304 100644
@@ -161,10 +161,10 @@ struct adp5588_gpio_platform_data {
 	unsigned irq_base;	/* interrupt base # */
 	unsigned pullup_dis_mask; /* Pull-Up Disable Mask */
 	int	(*setup)(struct i2c_client *client,
-				int gpio, unsigned ngpio,
+				unsigned gpio, unsigned ngpio,
 				void *context);
 	int	(*teardown)(struct i2c_client *client,
-				int gpio, unsigned ngpio,
+				unsigned gpio, unsigned ngpio,
 				void *context);
 	void	*context;
 };
Signature · 1 line
1.8.5.3
#1 lore raw

PATCH 2/2 gpio: adp5588 - add support for gpio names

which is already found in the common header for adp5588

---
 drivers/gpio/gpio-adp5588.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-adp5588.c +1 -0
index 7d3c8d9..d974020 100644
@@ -397,6 +397,7 @@ static int adp5588_gpio_probe(struct i2c_client *client,
 	gc->ngpio = ADP5588_MAXGPIO;
 	gc->label = client->name;
 	gc->owner = THIS_MODULE;
+	gc->names = pdata->names;
 
 	mutex_init(&dev->lock);
 
Signature · 1 line
1.8.5.3
Acked-by on v1 2/2
#2 lore raw

RE: [PATCH 2/2] gpio: adp5588 - add support for gpio names

-----Original Message-----
From: Jean-Francois Dagenais [mailto:[email protected]]
Sent: Montag, 10. Februar 2014 18:24
To: Hennerich, Michael; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Jean-Francois Dagenais
Subject: [PATCH 2/2] gpio: adp5588 - add support for gpio names

which is already found in the common header for adp5588

---
 drivers/gpio/gpio-adp5588.c | 1 +
 1 file changed, 1 insertion(+)
drivers/gpio/gpio-adp5588.c +1 -0
@@ -397,6 +397,7 @@ static int adp5588_gpio_probe(struct i2c_client *client,
 	gc->ngpio = ADP5588_MAXGPIO;
 	gc->label = client->name;
 	gc->owner = THIS_MODULE;
+	gc->names = pdata->names;
 
 	mutex_init(&dev->lock);
 

--
1.8.5.3

Acked-by on v1 1/2
#4 lore raw
In reply to Jean-Francois Dagenais

-----Original Message-----
From: Jean-Francois Dagenais [mailto:[email protected]]
Sent: Montag, 10. Februar 2014 18:24
To: Hennerich, Michael; [email protected]; [email protected]; [email protected]; [email protected]
Cc: [email protected]; [email protected]; Jean-Francois Dagenais
Subject: [PATCH 1/2] gpio: adp5588 - use "unsigned" for the setup and teardown callbacks

to comply with the rest of the GPIO drivers.

---
 include/linux/i2c/adp5588.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
include/linux/i2c/adp5588.h +2 -2
@@ -161,10 +161,10 @@ struct adp5588_gpio_platform_data {
 	unsigned irq_base;	/* interrupt base # */
 	unsigned pullup_dis_mask; /* Pull-Up Disable Mask */
 	int	(*setup)(struct i2c_client *client,
-				int gpio, unsigned ngpio,
+				unsigned gpio, unsigned ngpio,
 				void *context);
 	int	(*teardown)(struct i2c_client *client,
-				int gpio, unsigned ngpio,
+				unsigned gpio, unsigned ngpio,
 				void *context);
 	void	*context;
 };

--
1.8.5.3