* [PATCH 132/182] blackfin: gpio: switch to gpiochip_add_data()
@ 2015-12-09 13:37 Linus Walleij
2015-12-11 6:24 ` Sonic Zhang
0 siblings, 1 reply; 2+ messages in thread
From: Linus Walleij @ 2015-12-09 13:37 UTC (permalink / raw)
To: linux-gpio, Johan Hovold, Alexandre Courbot, Michael Welling,
Markus Pargmann, Sonic Zhang, Steven Miao, adi-buildroot-devel
Cc: Linus Walleij
We're planning to remove the gpiochip_add() function to swith
to gpiochip_add_data() with NULL for data argument.
Cc: Sonic Zhang <sonic.zhang@analog.com>
Cc: Steven Miao <realmz6@gmail.com>
Cc: adi-buildroot-devel@lists.sourceforge.net
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
---
Blackfin maintainers: please ACK this so I can take it through
the GPIO tree.
BTW: isn't this going away? I liked Sonic's
drivers/pinctrl/pinctrl-adi2.c driver, is this adi1? It should be
modernized and moved to drivers/pinctrl.
---
arch/blackfin/kernel/bfin_gpio.c | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c
index a017359c1826..7a91cc6ea4b2 100644
--- a/arch/blackfin/kernel/bfin_gpio.c
+++ b/arch/blackfin/kernel/bfin_gpio.c
@@ -11,6 +11,8 @@
#include <linux/err.h>
#include <linux/proc_fs.h>
#include <linux/seq_file.h>
+#include <linux/gpio/driver.h>
+/* FIXME: consumer API required for gpio_set_value() etc, get rid of this */
#include <linux/gpio.h>
#include <linux/irq.h>
@@ -1197,7 +1199,7 @@ static struct gpio_chip bfin_chip = {
static int __init bfin_gpiolib_setup(void)
{
- return gpiochip_add(&bfin_chip);
+ return gpiochip_add_data(&bfin_chip, NULL);
}
arch_initcall(bfin_gpiolib_setup);
#endif
--
2.4.3
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH 132/182] blackfin: gpio: switch to gpiochip_add_data()
2015-12-09 13:37 [PATCH 132/182] blackfin: gpio: switch to gpiochip_add_data() Linus Walleij
@ 2015-12-11 6:24 ` Sonic Zhang
0 siblings, 0 replies; 2+ messages in thread
From: Sonic Zhang @ 2015-12-11 6:24 UTC (permalink / raw)
To: Linus Walleij
Cc: linux-gpio@vger.kernel.org, Johan Hovold, Alexandre Courbot,
Michael Welling, Markus Pargmann, Sonic Zhang, Steven Miao,
adi-buildroot-devel
Acked-by: Sonic Zhang <sonic.zhang@analog.com>
On Wed, Dec 9, 2015 at 9:37 PM, Linus Walleij <linus.walleij@linaro.org> wrote:
> We're planning to remove the gpiochip_add() function to swith
> to gpiochip_add_data() with NULL for data argument.
>
> Cc: Sonic Zhang <sonic.zhang@analog.com>
> Cc: Steven Miao <realmz6@gmail.com>
> Cc: adi-buildroot-devel@lists.sourceforge.net
> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
> ---
> Blackfin maintainers: please ACK this so I can take it through
> the GPIO tree.
>
> BTW: isn't this going away? I liked Sonic's
> drivers/pinctrl/pinctrl-adi2.c driver, is this adi1? It should be
> modernized and moved to drivers/pinctrl.
This is the legacy driver for Blackfin 5xx serial silicons. The
Blackfin 54x and 6xx silicons use a different pinmux model and are
only supported in driver drivers/pinctrl/pinctrl-adi2.c ,
> ---
> arch/blackfin/kernel/bfin_gpio.c | 4 +++-
> 1 file changed, 3 insertions(+), 1 deletion(-)
>
> diff --git a/arch/blackfin/kernel/bfin_gpio.c b/arch/blackfin/kernel/bfin_gpio.c
> index a017359c1826..7a91cc6ea4b2 100644
> --- a/arch/blackfin/kernel/bfin_gpio.c
> +++ b/arch/blackfin/kernel/bfin_gpio.c
> @@ -11,6 +11,8 @@
> #include <linux/err.h>
> #include <linux/proc_fs.h>
> #include <linux/seq_file.h>
> +#include <linux/gpio/driver.h>
> +/* FIXME: consumer API required for gpio_set_value() etc, get rid of this */
> #include <linux/gpio.h>
> #include <linux/irq.h>
>
> @@ -1197,7 +1199,7 @@ static struct gpio_chip bfin_chip = {
>
> static int __init bfin_gpiolib_setup(void)
> {
> - return gpiochip_add(&bfin_chip);
> + return gpiochip_add_data(&bfin_chip, NULL);
> }
> arch_initcall(bfin_gpiolib_setup);
> #endif
> --
> 2.4.3
>
> --
> To unsubscribe from this list: send the line "unsubscribe linux-gpio" in
> the body of a message to majordomo@vger.kernel.org
> More majordomo info at http://vger.kernel.org/majordomo-info.html
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-12-11 6:50 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:37 [PATCH 132/182] blackfin: gpio: switch to gpiochip_add_data() Linus Walleij
2015-12-11 6:24 ` Sonic Zhang
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).