linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] gpiolib: fix of_find_gpio() when OF not defined
@ 2013-11-19  1:37 Alexandre Courbot
  2013-11-19  9:46 ` Linus Walleij
  0 siblings, 1 reply; 2+ messages in thread
From: Alexandre Courbot @ 2013-11-19  1:37 UTC (permalink / raw)
  To: Linus Walleij; +Cc: linux-gpio, linux-kernel, Alexandre Courbot

The prototype for static GPIO lookup functions has been updated to use
an explicit type for GPIO lookup flags. Unfortunately the definition of
of_find_gpio() when CONFIG_OF is not defined has been omitted, which
triggers a warning. This patch fixes this.

Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
--
This fixes the kbuild test robot warning about
"gpiolib: use dedicated flags for GPIO properties". Hopefully this can
be squashed into this same patch. Apologies for the trouble.
---
 drivers/gpio/gpiolib.c | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)

diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 48d1a67ed488..463496160a94 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -2299,7 +2299,8 @@ static struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id,
 }
 #else
 static struct gpio_desc *of_find_gpio(struct device *dev, const char *con_id,
-				      unsigned int idx, unsigned long *flags)
+				      unsigned int idx,
+				      enum gpio_lookup_flags *flags)
 {
 	return ERR_PTR(-ENODEV);
 }
-- 
1.8.4.2


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] gpiolib: fix of_find_gpio() when OF not defined
  2013-11-19  1:37 [PATCH] gpiolib: fix of_find_gpio() when OF not defined Alexandre Courbot
@ 2013-11-19  9:46 ` Linus Walleij
  0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2013-11-19  9:46 UTC (permalink / raw)
  To: Alexandre Courbot; +Cc: linux-gpio, linux-kernel

On Tue, Nov 19, 2013 at 2:37 AM, Alexandre Courbot <acourbot@nvidia.com> wrote:

> The prototype for static GPIO lookup functions has been updated to use
> an explicit type for GPIO lookup flags. Unfortunately the definition of
> of_find_gpio() when CONFIG_OF is not defined has been omitted, which
> triggers a warning. This patch fixes this.
>
> Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
> --
> This fixes the kbuild test robot warning about
> "gpiolib: use dedicated flags for GPIO properties". Hopefully this can
> be squashed into this same patch. Apologies for the trouble.

Thanks!

Patch applied for fixes.

Yours,
Linus Walleij

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2013-11-19  9:46 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-19  1:37 [PATCH] gpiolib: fix of_find_gpio() when OF not defined Alexandre Courbot
2013-11-19  9:46 ` Linus Walleij

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