linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 1/2] input: adp5588 - add support for gpio names
@ 2012-01-09 19:15 Jean-François Dagenais
  2012-01-09 19:15 ` [PATCH 2/2] gpio: " Jean-François Dagenais
  2012-01-09 19:22 ` [PATCH 1/2] input: " Dmitry Torokhov
  0 siblings, 2 replies; 7+ messages in thread
From: Jean-François Dagenais @ 2012-01-09 19:15 UTC (permalink / raw)
  To: dmitry.torokhov
  Cc: linux-input, Michael.Hennerich, Jean-François Dagenais


Signed-off-by: Jean-François Dagenais <jeff.dagenais@gmail.com>
Acked-by: Michael Hennerich <michael.hennerich@analog.com>
---
 drivers/input/keyboard/adp5588-keys.c |    1 +
 include/linux/i2c/adp5588.h           |    1 +
 2 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/drivers/input/keyboard/adp5588-keys.c b/drivers/input/keyboard/adp5588-keys.c
index e34eeb8..6412ced 100644
--- a/drivers/input/keyboard/adp5588-keys.c
+++ b/drivers/input/keyboard/adp5588-keys.c
@@ -197,6 +197,7 @@ static int __devinit adp5588_gpio_add(struct adp5588_kpad *kpad)
 	kpad->gc.base = gpio_data->gpio_start;
 	kpad->gc.label = kpad->client->name;
 	kpad->gc.owner = THIS_MODULE;
+	kpad->gc.names = gpio_data->names;
 
 	mutex_init(&kpad->gpio_lock);
 
diff --git a/include/linux/i2c/adp5588.h b/include/linux/i2c/adp5588.h
index cec17cf..d8341cb 100644
--- a/include/linux/i2c/adp5588.h
+++ b/include/linux/i2c/adp5588.h
@@ -157,6 +157,7 @@ struct i2c_client; /* forward declaration */
 
 struct adp5588_gpio_platform_data {
 	int gpio_start;		/* GPIO Chip base # */
+	const char *const *names;
 	unsigned irq_base;	/* interrupt base # */
 	unsigned pullup_dis_mask; /* Pull-Up Disable Mask */
 	int	(*setup)(struct i2c_client *client,
-- 
1.7.8.2

--
To unsubscribe from this list: send the line "unsubscribe linux-input" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

^ permalink raw reply related	[flat|nested] 7+ messages in thread
* [PATCH 1/2] gpio: adp5588 - use "unsigned" for the setup and teardown callbacks
@ 2014-02-10 17:24 Jean-Francois Dagenais
  2014-02-10 17:24 ` [PATCH 2/2] gpio: adp5588 - add support for gpio names Jean-Francois Dagenais
  0 siblings, 1 reply; 7+ messages in thread
From: Jean-Francois Dagenais @ 2014-02-10 17:24 UTC (permalink / raw)
  To: michael.hennerich, dmitry.torokhov, dtor, linus.walleij, gnurou
  Cc: linux-gpio, linux-input, Jean-Francois Dagenais

to comply with the rest of the GPIO drivers.

Signed-off-by: Jean-Francois Dagenais <jeff.dagenais@gmail.com>
---
 include/linux/i2c/adp5588.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/include/linux/i2c/adp5588.h b/include/linux/i2c/adp5588.h
index d8341cb..c215304 100644
--- a/include/linux/i2c/adp5588.h
+++ b/include/linux/i2c/adp5588.h
@@ -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


^ permalink raw reply related	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2014-02-13 12:53 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-09 19:15 [PATCH 1/2] input: adp5588 - add support for gpio names Jean-François Dagenais
2012-01-09 19:15 ` [PATCH 2/2] gpio: " Jean-François Dagenais
2012-01-09 19:22 ` [PATCH 1/2] input: " Dmitry Torokhov
2012-04-20 14:49   ` Jean-Francois Dagenais
  -- strict thread matches above, loose matches on Subject: below --
2014-02-10 17:24 [PATCH 1/2] gpio: adp5588 - use "unsigned" for the setup and teardown callbacks Jean-Francois Dagenais
2014-02-10 17:24 ` [PATCH 2/2] gpio: adp5588 - add support for gpio names Jean-Francois Dagenais
2014-02-10 20:17   ` Hennerich, Michael
2014-02-13 12:53   ` Linus Walleij

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).