[PATCH] gpio:gpio-pl2303: add gpio driver for GPIOs on PL2303

2014-07-19 Thread Wang YanQing
PL2303HX has two GPIOs, this patch add driver for it. Signed-off-by: Wang YanQing --- MAINTAINERS | 5 + drivers/gpio/Kconfig| 7 ++ drivers/gpio/Makefile | 1 + drivers/gpio/gpio-pl2303.c | 238 drivers/usb/serial

Re: [PATCH] gpio:gpio-pl2303: add gpio driver for GPIOs on PL2303

2014-07-19 Thread Greg KH
On Sun, Jul 20, 2014 at 08:01:31AM +0800, Wang YanQing wrote: > PL2303HX has two GPIOs, this patch add driver for it. > > Signed-off-by: Wang YanQing > --- > MAINTAINERS | 5 + > drivers/gpio/Kconfig| 7 ++ > drivers/gpio/Makefile | 1 + > drivers/gpio/gpio-pl

Re: [PATCH] gpio:gpio-pl2303: add gpio driver for GPIOs on PL2303

2014-07-20 Thread Andreas Mohr
Hi, > +#include > +#include > +#include > + pl2303_gpio_write(&pl2303_gpio->gpio_chip); > + > + ret = gpiochip_add(&pl2303_gpio->gpio_chip); > + if (ret < 0) { AFAICS that stuff is conditional:ed by #ifdef CONFIG_GPIOLIB in gpio.h (or rather, its internally included asm-generic