* [PATCH 152/182] unicore32: gpio: switch to gpiochip_add_data()
@ 2015-12-09 13:43 Linus Walleij
2015-12-10 0:21 ` Xuetao Guan
0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2015-12-09 13:43 UTC (permalink / raw)
To: linux-gpio, Johan Hovold, Alexandre Courbot, Michael Welling,
Markus Pargmann, Guan Xuetao
Cc: Linus Walleij
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.
Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Guan please ACK this so I can take it through the GPIO tree.
BTW this could possibly move to drivers/gpio but I don't have
the whole picture here. The internal consumers should be
converted to the GPIO descriptor API.
---
arch/unicore32/kernel/gpio.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/unicore32/kernel/gpio.c b/arch/unicore32/kernel/gpio.c
index cb12ec39552c..54a54c335a72 100644
--- a/arch/unicore32/kernel/gpio.c
+++ b/arch/unicore32/kernel/gpio.c
@@ -14,6 +14,8 @@
#include <linux/init.h>
#include <linux/module.h>
+#include <linux/gpio/driver.h>
+/* FIXME: needed for gpio_set_value() - convert to use descriptors or hogs */
#include <linux/gpio.h>
#include <mach/hardware.h>
@@ -118,5 +120,5 @@ void __init puv3_init_gpio(void)
* gpio_set_value(GPO_SET_V2, 1);
*/
#endif
- gpiochip_add(&puv3_gpio_chip);
+ gpiochip_add_data(&puv3_gpio_chip, NULL);
}
--
2.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 152/182] unicore32: gpio: switch to gpiochip_add_data()
2015-12-09 13:43 [PATCH 152/182] unicore32: gpio: switch to gpiochip_add_data() Linus Walleij
@ 2015-12-10 0:21 ` Xuetao Guan
0 siblings, 0 replies; 2+ messages in thread
From: Xuetao Guan @ 2015-12-10 0:21 UTC (permalink / raw)
Cc: linux-gpio, Johan Hovold, Alexandre Courbot, Michael Welling,
Markus Pargmann, Guan Xuetao, Linus Walleij
> We're planning to remove the gpiochip_add() function to swith
> to gpiochip_add_data() with NULL for data argument.
>
> Cc: Guan Xuetao <gxt@mprc.pku.edu.cn>
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Thanks,
Acked-by: Guan Xuetao <gxt@mprc.pku.edu.cn>
> ---
> Guan please ACK this so I can take it through the GPIO tree.
> BTW this could possibly move to drivers/gpio but I don't have
> the whole picture here. The internal consumers should be
> converted to the GPIO descriptor API.
> ---
> arch/unicore32/kernel/gpio.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/unicore32/kernel/gpio.c b/arch/unicore32/kernel/gpio.c
> index cb12ec39552c..54a54c335a72 100644
> --- a/arch/unicore32/kernel/gpio.c
> +++ b/arch/unicore32/kernel/gpio.c
> @@ -14,6 +14,8 @@
>
> #include <linux/init.h>
> #include <linux/module.h>
> +#include <linux/gpio/driver.h>
> +/* FIXME: needed for gpio_set_value() - convert to use descriptors or
> hogs */
> #include <linux/gpio.h>
> #include <mach/hardware.h>
>
> @@ -118,5 +120,5 @@ void __init puv3_init_gpio(void)
> * gpio_set_value(GPO_SET_V2, 1);
> */
> #endif
> - gpiochip_add(&puv3_gpio_chip);
> + gpiochip_add_data(&puv3_gpio_chip, NULL);
> }
> --
> 2.4.3
>
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-10 0:35 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-12-09 13:43 [PATCH 152/182] unicore32: gpio: switch to gpiochip_add_data() Linus Walleij
2015-12-10 0:21 ` Xuetao Guan
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.