mail archive of the barebox mailing list
 help / color / mirror / Atom feed
* [PATCH 1/1] gpio_keys: fix loop on buttons for request and configuration
@ 2013-01-26 14:40 Jean-Christophe PLAGNIOL-VILLARD
  2013-01-26 22:14 ` Sascha Hauer
  0 siblings, 1 reply; 2+ messages in thread
From: Jean-Christophe PLAGNIOL-VILLARD @ 2013-01-26 14:40 UTC (permalink / raw)
  To: barebox

Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>
---
 drivers/input/gpio_keys.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/input/gpio_keys.c b/drivers/input/gpio_keys.c
index 6f3c912..543ad1a 100644
--- a/drivers/input/gpio_keys.c
+++ b/drivers/input/gpio_keys.c
@@ -79,7 +79,7 @@ static int __init gpio_keys_probe(struct device_d *dev)
 	pdata->recv_fifo = kfifo_alloc(pdata->fifo_size);
 
 	for (i = 0; i < pdata->nbuttons; i++) {
-		gpio = pdata->buttons->gpio;
+		gpio = pdata->buttons[i].gpio;
 		ret = gpio_request(gpio, "gpio_keys");
 		if (ret) {
 			pr_err("gpio_keys: (%d) can not be requested\n", gpio);
-- 
1.7.10.4


_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

* Re: [PATCH 1/1] gpio_keys: fix loop on buttons for request and configuration
  2013-01-26 14:40 [PATCH 1/1] gpio_keys: fix loop on buttons for request and configuration Jean-Christophe PLAGNIOL-VILLARD
@ 2013-01-26 22:14 ` Sascha Hauer
  0 siblings, 0 replies; 2+ messages in thread
From: Sascha Hauer @ 2013-01-26 22:14 UTC (permalink / raw)
  To: Jean-Christophe PLAGNIOL-VILLARD; +Cc: barebox

On Sat, Jan 26, 2013 at 03:40:29PM +0100, Jean-Christophe PLAGNIOL-VILLARD wrote:
> Signed-off-by: Jean-Christophe PLAGNIOL-VILLARD <plagnioj@jcrosoft.com>

Applied, thanks

Sascha

> ---
>  drivers/input/gpio_keys.c |    2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/drivers/input/gpio_keys.c b/drivers/input/gpio_keys.c
> index 6f3c912..543ad1a 100644
> --- a/drivers/input/gpio_keys.c
> +++ b/drivers/input/gpio_keys.c
> @@ -79,7 +79,7 @@ static int __init gpio_keys_probe(struct device_d *dev)
>  	pdata->recv_fifo = kfifo_alloc(pdata->fifo_size);
>  
>  	for (i = 0; i < pdata->nbuttons; i++) {
> -		gpio = pdata->buttons->gpio;
> +		gpio = pdata->buttons[i].gpio;
>  		ret = gpio_request(gpio, "gpio_keys");
>  		if (ret) {
>  			pr_err("gpio_keys: (%d) can not be requested\n", gpio);
> -- 
> 1.7.10.4
> 
> 
> _______________________________________________
> barebox mailing list
> barebox@lists.infradead.org
> http://lists.infradead.org/mailman/listinfo/barebox
> 

-- 
Pengutronix e.K.                           |                             |
Industrial Linux Solutions                 | http://www.pengutronix.de/  |
Peiner Str. 6-8, 31137 Hildesheim, Germany | Phone: +49-5121-206917-0    |
Amtsgericht Hildesheim, HRA 2686           | Fax:   +49-5121-206917-5555 |

_______________________________________________
barebox mailing list
barebox@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/barebox

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

end of thread, other threads:[~2013-01-26 22:14 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-01-26 14:40 [PATCH 1/1] gpio_keys: fix loop on buttons for request and configuration Jean-Christophe PLAGNIOL-VILLARD
2013-01-26 22:14 ` Sascha Hauer

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox