Re: [PATCH] gpio: rewrite U300 GPIO to use gpiolib

2011-09-07 Thread Linus Walleij
On Tue, Sep 6, 2011 at 11:51 AM, Arnaud Patard arnaud.pat...@rtp-net.org wrote: [Me] -#ifdef U300_COH901571_3 +#if defined(CONFIG_MACH_U300_BS365) || defined(CONFIG_MACH_U300_BS335)       {               .name  = gpio3,               .start = IRQ_U300_GPIO_PORT3, @@ -236,6 +237,7 @@ static

Re: [PATCH] gpio: rewrite U300 GPIO to use gpiolib

2011-09-06 Thread Russell King - ARM Linux
On Tue, Sep 06, 2011 at 10:32:30AM +0200, Linus Walleij wrote: This is based on top of the pending GPIO cleanups in Russells tree, if I can get some ACK on this I presume Russell can apply it to his branch. diff --git a/arch/arm/mach-u300/include/mach/gpio.h

Re: [PATCH] gpio: rewrite U300 GPIO to use gpiolib

2011-09-06 Thread Linus Walleij
On Tue, Sep 6, 2011 at 10:49 AM, Russell King - ARM Linux li...@arm.linux.org.uk wrote: +#include linux/io.h +#include mach/hardware.h +#include asm/irq.h +#include asm-generic/gpio.h +/* Map these overrides to gpiolib functions, simply */ +#define gpio_get_value  __gpio_get_value

Re: [PATCH] gpio: rewrite U300 GPIO to use gpiolib

2011-09-06 Thread Rtp
Linus Walleij linus.wall...@stericsson.com writes: Hi, From: Linus Walleij linus.wall...@linaro.org This rewrites the U300 GPIO so as to use gpiolib and struct gpio_chip instead of just generic GPIO, hiding all the platform specifics and passing in GPIO chip variant as platform data at