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
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
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