linux-kernel.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH 0/3] leds: leds-gpio: Allow compile test if !GPIOLIB
@ 2015-05-07  8:08 Geert Uytterhoeven
  2015-05-07  8:08 ` [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface Geert Uytterhoeven
                   ` (2 more replies)
  0 siblings, 3 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2015-05-07  8:08 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot, Bryan Wu, Richard Purdie,
	Arnd Bergmann
  Cc: Jacek Anaszewski, linux-gpio, linux-leds, linux-kernel,
	Geert Uytterhoeven

The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.

This patch series allows compile testing of the leds-gpio driver if
GPIOLIB is not enabled. This requires adding a missing dummy to gpiolib,
and a missing include to leds-gpio.

This series follows the work started in the series "[PATCH 00/27] gpio:
Allow compile test of GPIO consumers if !GPIOLIB"
(https://lkml.org/lkml/2015/5/5/779), but can be applied independently.

The third patch depends on the first two patches, but it could be folded
into "[PATCH 09/27] leds: Allow compile test of GPIO consumers if
!GPIOLIB" of the series mentioned above, once its dependencies are
satisfied.

Thanks!

Geert Uytterhoeven (3):
  gpiolib: Add missing dummies for the unified device properties
    interface
  leds: leds-gpio: Add missing #include <linux/of.h>
  leds: leds-gpio: Allow compile test if !GPIOLIB

 drivers/leds/Kconfig          |  2 +-
 drivers/leds/leds-gpio.c      |  1 +
 include/linux/gpio/consumer.h | 15 +++++++++++++++
 3 files changed, 17 insertions(+), 1 deletion(-)

-- 
1.9.1

Gr{oetje,eeting}s,

						Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
							    -- Linus Torvalds

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

* [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface
  2015-05-07  8:08 [PATCH 0/3] leds: leds-gpio: Allow compile test if !GPIOLIB Geert Uytterhoeven
@ 2015-05-07  8:08 ` Geert Uytterhoeven
  2015-05-08 17:43   ` Bryan Wu
                     ` (2 more replies)
  2015-05-07  8:08 ` [PATCH 2/3] leds: leds-gpio: Add missing #include <linux/of.h> Geert Uytterhoeven
  2015-05-07  8:08 ` [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB Geert Uytterhoeven
  2 siblings, 3 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2015-05-07  8:08 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot, Bryan Wu, Richard Purdie,
	Arnd Bergmann
  Cc: Jacek Anaszewski, linux-gpio, linux-leds, linux-kernel,
	Geert Uytterhoeven

If GPIOLIB=n:

    drivers/leds/leds-gpio.c: In function ‘gpio_leds_create’:
    drivers/leds/leds-gpio.c:187: error: implicit declaration of function ‘devm_get_gpiod_from_child’
    drivers/leds/leds-gpio.c:187: warning: assignment makes pointer from integer without a cast

Add dummies for fwnode_get_named_gpiod() and devm_get_gpiod_from_child()
for the !GPIOLIB case to fix this.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
Fixes: 40b7318319281b1b ("gpio: Support for unified device properties interface")
---
 include/linux/gpio/consumer.h | 15 +++++++++++++++
 1 file changed, 15 insertions(+)

diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h
index 3a7c9ffd5ab930b4..da042657dc31d7f5 100644
--- a/include/linux/gpio/consumer.h
+++ b/include/linux/gpio/consumer.h
@@ -406,6 +406,21 @@ static inline int desc_to_gpio(const struct gpio_desc *desc)
 	return -EINVAL;
 }
 
+/* Child properties interface */
+struct fwnode_handle;
+
+static inline struct gpio_desc *fwnode_get_named_gpiod(
+	struct fwnode_handle *fwnode, const char *propname)
+{
+	return ERR_PTR(-ENOSYS);
+}
+
+static inline struct gpio_desc *devm_get_gpiod_from_child(
+	struct device *dev, const char *con_id, struct fwnode_handle *child)
+{
+	return ERR_PTR(-ENOSYS);
+}
+
 #endif /* CONFIG_GPIOLIB */
 
 /*
-- 
1.9.1


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

* [PATCH 2/3] leds: leds-gpio: Add missing #include <linux/of.h>
  2015-05-07  8:08 [PATCH 0/3] leds: leds-gpio: Allow compile test if !GPIOLIB Geert Uytterhoeven
  2015-05-07  8:08 ` [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface Geert Uytterhoeven
@ 2015-05-07  8:08 ` Geert Uytterhoeven
  2015-05-07 12:15   ` Jacek Anaszewski
  2015-05-07  8:08 ` [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB Geert Uytterhoeven
  2 siblings, 1 reply; 14+ messages in thread
From: Geert Uytterhoeven @ 2015-05-07  8:08 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot, Bryan Wu, Richard Purdie,
	Arnd Bergmann
  Cc: Jacek Anaszewski, linux-gpio, linux-leds, linux-kernel,
	Geert Uytterhoeven

drivers/leds/leds-gpio.c: In function ‘gpio_leds_create’:
drivers/leds/leds-gpio.c:194: error: implicit declaration of function ‘of_node’
drivers/leds/leds-gpio.c:194: warning: assignment makes pointer from integer without a cast
drivers/leds/leds-gpio.c:200: error: dereferencing pointer to incomplete type

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
 drivers/leds/leds-gpio.c | 1 +
 1 file changed, 1 insertion(+)

diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
index 15eb3f86f670ffe4..89d981e8f8cacf55 100644
--- a/drivers/leds/leds-gpio.c
+++ b/drivers/leds/leds-gpio.c
@@ -16,6 +16,7 @@
 #include <linux/kernel.h>
 #include <linux/leds.h>
 #include <linux/module.h>
+#include <linux/of.h>
 #include <linux/platform_device.h>
 #include <linux/property.h>
 #include <linux/slab.h>
-- 
1.9.1


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

* [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB
  2015-05-07  8:08 [PATCH 0/3] leds: leds-gpio: Allow compile test if !GPIOLIB Geert Uytterhoeven
  2015-05-07  8:08 ` [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface Geert Uytterhoeven
  2015-05-07  8:08 ` [PATCH 2/3] leds: leds-gpio: Add missing #include <linux/of.h> Geert Uytterhoeven
@ 2015-05-07  8:08 ` Geert Uytterhoeven
  2015-05-07 12:15   ` Jacek Anaszewski
  2015-05-12 10:23   ` Linus Walleij
  2 siblings, 2 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2015-05-07  8:08 UTC (permalink / raw)
  To: Linus Walleij, Alexandre Courbot, Bryan Wu, Richard Purdie,
	Arnd Bergmann
  Cc: Jacek Anaszewski, linux-gpio, linux-leds, linux-kernel,
	Geert Uytterhoeven

The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
functionality only, can still be compiled if GPIOLIB is not enabled.

Relax the dependency of LEDS_GPIO on GPIOLIB if COMPILE_TEST is
enabled.

Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
---
This could be folded in "[PATCH 09/27] leds: Allow compile test of GPIO
consumers if !GPIOLIB" once its dependencies are satisfied.
---
 drivers/leds/Kconfig | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
index 8161cddc3f8d597a..1f6cb38335b52c3c 100644
--- a/drivers/leds/Kconfig
+++ b/drivers/leds/Kconfig
@@ -182,7 +182,7 @@ config LEDS_PCA9532_GPIO
 config LEDS_GPIO
 	tristate "LED Support for GPIO connected LEDs"
 	depends on LEDS_CLASS
-	depends on GPIOLIB
+	depends on GPIOLIB || COMPILE_TEST
 	help
 	  This option enables support for the LEDs connected to GPIO
 	  outputs. To be useful the particular board must have LEDs
-- 
1.9.1


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

* Re: [PATCH 2/3] leds: leds-gpio: Add missing #include <linux/of.h>
  2015-05-07  8:08 ` [PATCH 2/3] leds: leds-gpio: Add missing #include <linux/of.h> Geert Uytterhoeven
@ 2015-05-07 12:15   ` Jacek Anaszewski
  2015-05-12 17:49     ` Bryan Wu
  0 siblings, 1 reply; 14+ messages in thread
From: Jacek Anaszewski @ 2015-05-07 12:15 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Linus Walleij, Alexandre Courbot, Bryan Wu, Richard Purdie,
	Arnd Bergmann, linux-gpio, linux-leds, linux-kernel

On 05/07/2015 10:08 AM, Geert Uytterhoeven wrote:
> drivers/leds/leds-gpio.c: In function ‘gpio_leds_create’:
> drivers/leds/leds-gpio.c:194: error: implicit declaration of function ‘of_node’
> drivers/leds/leds-gpio.c:194: warning: assignment makes pointer from integer without a cast
> drivers/leds/leds-gpio.c:200: error: dereferencing pointer to incomplete type
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
>   drivers/leds/leds-gpio.c | 1 +
>   1 file changed, 1 insertion(+)
>
> diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
> index 15eb3f86f670ffe4..89d981e8f8cacf55 100644
> --- a/drivers/leds/leds-gpio.c
> +++ b/drivers/leds/leds-gpio.c
> @@ -16,6 +16,7 @@
>   #include <linux/kernel.h>
>   #include <linux/leds.h>
>   #include <linux/module.h>
> +#include <linux/of.h>
>   #include <linux/platform_device.h>
>   #include <linux/property.h>
>   #include <linux/slab.h>
>

Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>

-- 
Best Regards,
Jacek Anaszewski

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

* Re: [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB
  2015-05-07  8:08 ` [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB Geert Uytterhoeven
@ 2015-05-07 12:15   ` Jacek Anaszewski
  2015-05-12 10:23   ` Linus Walleij
  1 sibling, 0 replies; 14+ messages in thread
From: Jacek Anaszewski @ 2015-05-07 12:15 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Linus Walleij, Alexandre Courbot, Bryan Wu, Richard Purdie,
	Arnd Bergmann, linux-gpio, linux-leds, linux-kernel

On 05/07/2015 10:08 AM, Geert Uytterhoeven wrote:
> The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
> not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
> functionality only, can still be compiled if GPIOLIB is not enabled.
>
> Relax the dependency of LEDS_GPIO on GPIOLIB if COMPILE_TEST is
> enabled.
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> ---
> This could be folded in "[PATCH 09/27] leds: Allow compile test of GPIO
> consumers if !GPIOLIB" once its dependencies are satisfied.
> ---
>   drivers/leds/Kconfig | 2 +-
>   1 file changed, 1 insertion(+), 1 deletion(-)
>
> diff --git a/drivers/leds/Kconfig b/drivers/leds/Kconfig
> index 8161cddc3f8d597a..1f6cb38335b52c3c 100644
> --- a/drivers/leds/Kconfig
> +++ b/drivers/leds/Kconfig
> @@ -182,7 +182,7 @@ config LEDS_PCA9532_GPIO
>   config LEDS_GPIO
>   	tristate "LED Support for GPIO connected LEDs"
>   	depends on LEDS_CLASS
> -	depends on GPIOLIB
> +	depends on GPIOLIB || COMPILE_TEST
>   	help
>   	  This option enables support for the LEDs connected to GPIO
>   	  outputs. To be useful the particular board must have LEDs
>

Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>

-- 
Best Regards,
Jacek Anaszewski

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

* Re: [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface
  2015-05-07  8:08 ` [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface Geert Uytterhoeven
@ 2015-05-08 17:43   ` Bryan Wu
  2015-05-12  7:48     ` Geert Uytterhoeven
  2015-05-12  7:47   ` Alexandre Courbot
  2015-05-12 10:31   ` Linus Walleij
  2 siblings, 1 reply; 14+ messages in thread
From: Bryan Wu @ 2015-05-08 17:43 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Linus Walleij, Alexandre Courbot, Richard Purdie, Arnd Bergmann,
	Jacek Anaszewski, linux-gpio, Linux LED Subsystem, lkml

On Thu, May 7, 2015 at 1:08 AM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> If GPIOLIB=n:
>
>     drivers/leds/leds-gpio.c: In function ‘gpio_leds_create’:
>     drivers/leds/leds-gpio.c:187: error: implicit declaration of function ‘devm_get_gpiod_from_child’
>     drivers/leds/leds-gpio.c:187: warning: assignment makes pointer from integer without a cast
>
> Add dummies for fwnode_get_named_gpiod() and devm_get_gpiod_from_child()
> for the !GPIOLIB case to fix this.
>

Geert,

This patch looks good to me. Do you mind merging it through LED tree
with other 2 more LED patches?

Thanks,
-Bryan


> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Fixes: 40b7318319281b1b ("gpio: Support for unified device properties interface")
> ---
>  include/linux/gpio/consumer.h | 15 +++++++++++++++
>  1 file changed, 15 insertions(+)
>
> diff --git a/include/linux/gpio/consumer.h b/include/linux/gpio/consumer.h
> index 3a7c9ffd5ab930b4..da042657dc31d7f5 100644
> --- a/include/linux/gpio/consumer.h
> +++ b/include/linux/gpio/consumer.h
> @@ -406,6 +406,21 @@ static inline int desc_to_gpio(const struct gpio_desc *desc)
>         return -EINVAL;
>  }
>
> +/* Child properties interface */
> +struct fwnode_handle;
> +
> +static inline struct gpio_desc *fwnode_get_named_gpiod(
> +       struct fwnode_handle *fwnode, const char *propname)
> +{
> +       return ERR_PTR(-ENOSYS);
> +}
> +
> +static inline struct gpio_desc *devm_get_gpiod_from_child(
> +       struct device *dev, const char *con_id, struct fwnode_handle *child)
> +{
> +       return ERR_PTR(-ENOSYS);
> +}
> +
>  #endif /* CONFIG_GPIOLIB */
>
>  /*
> --
> 1.9.1
>

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

* Re: [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface
  2015-05-07  8:08 ` [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface Geert Uytterhoeven
  2015-05-08 17:43   ` Bryan Wu
@ 2015-05-12  7:47   ` Alexandre Courbot
  2015-05-12 10:31   ` Linus Walleij
  2 siblings, 0 replies; 14+ messages in thread
From: Alexandre Courbot @ 2015-05-12  7:47 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Linus Walleij, Bryan Wu, Richard Purdie, Arnd Bergmann,
	Jacek Anaszewski, linux-gpio, linux-leds,
	Linux Kernel Mailing List

On Thu, May 7, 2015 at 5:08 PM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
> If GPIOLIB=n:
>
>     drivers/leds/leds-gpio.c: In function ‘gpio_leds_create’:
>     drivers/leds/leds-gpio.c:187: error: implicit declaration of function ‘devm_get_gpiod_from_child’
>     drivers/leds/leds-gpio.c:187: warning: assignment makes pointer from integer without a cast
>
> Add dummies for fwnode_get_named_gpiod() and devm_get_gpiod_from_child()
> for the !GPIOLIB case to fix this.

This was obviously missing.

Acked-by: Alexandre Courbot <acourbot@nvidia.com>

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

* Re: [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface
  2015-05-08 17:43   ` Bryan Wu
@ 2015-05-12  7:48     ` Geert Uytterhoeven
  0 siblings, 0 replies; 14+ messages in thread
From: Geert Uytterhoeven @ 2015-05-12  7:48 UTC (permalink / raw)
  To: Bryan Wu
  Cc: Linus Walleij, Alexandre Courbot, Richard Purdie, Arnd Bergmann,
	Jacek Anaszewski, linux-gpio, Linux LED Subsystem, lkml

Hi Bryan,

On Fri, May 8, 2015 at 7:43 PM, Bryan Wu <cooloney@gmail.com> wrote:
> On Thu, May 7, 2015 at 1:08 AM, Geert Uytterhoeven <geert@linux-m68k.org> wrote:
>> If GPIOLIB=n:
>>
>>     drivers/leds/leds-gpio.c: In function ‘gpio_leds_create’:
>>     drivers/leds/leds-gpio.c:187: error: implicit declaration of function ‘devm_get_gpiod_from_child’
>>     drivers/leds/leds-gpio.c:187: warning: assignment makes pointer from integer without a cast
>>
>> Add dummies for fwnode_get_named_gpiod() and devm_get_gpiod_from_child()
>> for the !GPIOLIB case to fix this.
>
> This patch looks good to me. Do you mind merging it through LED tree
> with other 2 more LED patches?

Now we have an ack from Alex, that's fine for me. Thanks!

Gr{oetje,eeting}s,

                        Geert

--
Geert Uytterhoeven -- There's lots of Linux beyond ia32 -- geert@linux-m68k.org

In personal conversations with technical people, I call myself a hacker. But
when I'm talking to journalists I just say "programmer" or something like that.
                                -- Linus Torvalds

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

* Re: [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB
  2015-05-07  8:08 ` [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB Geert Uytterhoeven
  2015-05-07 12:15   ` Jacek Anaszewski
@ 2015-05-12 10:23   ` Linus Walleij
  2015-05-12 17:53     ` Bryan Wu
  1 sibling, 1 reply; 14+ messages in thread
From: Linus Walleij @ 2015-05-12 10:23 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Alexandre Courbot, Bryan Wu, Richard Purdie, Arnd Bergmann,
	Jacek Anaszewski, linux-gpio, linux-leds, linux-kernel

On Thu, May 7, 2015 at 10:08 AM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:

> The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
> not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
> functionality only, can still be compiled if GPIOLIB is not enabled.
>
> Relax the dependency of LEDS_GPIO on GPIOLIB if COMPILE_TEST is
> enabled.
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Yours,
Linus Walleij

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

* Re: [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface
  2015-05-07  8:08 ` [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface Geert Uytterhoeven
  2015-05-08 17:43   ` Bryan Wu
  2015-05-12  7:47   ` Alexandre Courbot
@ 2015-05-12 10:31   ` Linus Walleij
  2015-05-12 17:48     ` Bryan Wu
  2 siblings, 1 reply; 14+ messages in thread
From: Linus Walleij @ 2015-05-12 10:31 UTC (permalink / raw)
  To: Geert Uytterhoeven
  Cc: Alexandre Courbot, Bryan Wu, Richard Purdie, Arnd Bergmann,
	Jacek Anaszewski, linux-gpio, linux-leds, linux-kernel

On Thu, May 7, 2015 at 10:08 AM, Geert Uytterhoeven
<geert@linux-m68k.org> wrote:

> If GPIOLIB=n:
>
>     drivers/leds/leds-gpio.c: In function ‘gpio_leds_create’:
>     drivers/leds/leds-gpio.c:187: error: implicit declaration of function ‘devm_get_gpiod_from_child’
>     drivers/leds/leds-gpio.c:187: warning: assignment makes pointer from integer without a cast
>
> Add dummies for fwnode_get_named_gpiod() and devm_get_gpiod_from_child()
> for the !GPIOLIB case to fix this.
>
> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
> Fixes: 40b7318319281b1b ("gpio: Support for unified device properties interface")

Acked-by: Linus Walleij <linus.walleij@linaro.org>

Counting on this to go through the LEDs tree as discussed.

Yours,
Linus Walleij

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

* Re: [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface
  2015-05-12 10:31   ` Linus Walleij
@ 2015-05-12 17:48     ` Bryan Wu
  0 siblings, 0 replies; 14+ messages in thread
From: Bryan Wu @ 2015-05-12 17:48 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Geert Uytterhoeven, Alexandre Courbot, Richard Purdie,
	Arnd Bergmann, Jacek Anaszewski, linux-gpio, linux-leds,
	linux-kernel

On Tue, May 12, 2015 at 3:31 AM, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Thu, May 7, 2015 at 10:08 AM, Geert Uytterhoeven
> <geert@linux-m68k.org> wrote:
>
>> If GPIOLIB=n:
>>
>>     drivers/leds/leds-gpio.c: In function ‘gpio_leds_create’:
>>     drivers/leds/leds-gpio.c:187: error: implicit declaration of function ‘devm_get_gpiod_from_child’
>>     drivers/leds/leds-gpio.c:187: warning: assignment makes pointer from integer without a cast
>>
>> Add dummies for fwnode_get_named_gpiod() and devm_get_gpiod_from_child()
>> for the !GPIOLIB case to fix this.
>>
>> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
>> Fixes: 40b7318319281b1b ("gpio: Support for unified device properties interface")
>
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> Counting on this to go through the LEDs tree as discussed.
>
> Yours,
> Linus Walleij


OK, merged with Alex and Linus Acks. Thanks,
-Bryan

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

* Re: [PATCH 2/3] leds: leds-gpio: Add missing #include <linux/of.h>
  2015-05-07 12:15   ` Jacek Anaszewski
@ 2015-05-12 17:49     ` Bryan Wu
  0 siblings, 0 replies; 14+ messages in thread
From: Bryan Wu @ 2015-05-12 17:49 UTC (permalink / raw)
  To: Jacek Anaszewski
  Cc: Geert Uytterhoeven, Linus Walleij, Alexandre Courbot,
	Richard Purdie, Arnd Bergmann, linux-gpio, Linux LED Subsystem,
	lkml

On Thu, May 7, 2015 at 5:15 AM, Jacek Anaszewski
<j.anaszewski@samsung.com> wrote:
> On 05/07/2015 10:08 AM, Geert Uytterhoeven wrote:
>>
>> drivers/leds/leds-gpio.c: In function ‘gpio_leds_create’:
>> drivers/leds/leds-gpio.c:194: error: implicit declaration of function
>> ‘of_node’
>> drivers/leds/leds-gpio.c:194: warning: assignment makes pointer from
>> integer without a cast
>> drivers/leds/leds-gpio.c:200: error: dereferencing pointer to incomplete
>> type
>>
>> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
>> ---
>>   drivers/leds/leds-gpio.c | 1 +
>>   1 file changed, 1 insertion(+)
>>
>> diff --git a/drivers/leds/leds-gpio.c b/drivers/leds/leds-gpio.c
>> index 15eb3f86f670ffe4..89d981e8f8cacf55 100644
>> --- a/drivers/leds/leds-gpio.c
>> +++ b/drivers/leds/leds-gpio.c
>> @@ -16,6 +16,7 @@
>>   #include <linux/kernel.h>
>>   #include <linux/leds.h>
>>   #include <linux/module.h>
>> +#include <linux/of.h>
>>   #include <linux/platform_device.h>
>>   #include <linux/property.h>
>>   #include <linux/slab.h>
>>
>
> Acked-by: Jacek Anaszewski <j.anaszewski@samsung.com>
>

Merged, thanks.
-Bryan

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

* Re: [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB
  2015-05-12 10:23   ` Linus Walleij
@ 2015-05-12 17:53     ` Bryan Wu
  0 siblings, 0 replies; 14+ messages in thread
From: Bryan Wu @ 2015-05-12 17:53 UTC (permalink / raw)
  To: Linus Walleij
  Cc: Geert Uytterhoeven, Alexandre Courbot, Richard Purdie,
	Arnd Bergmann, Jacek Anaszewski, linux-gpio, linux-leds,
	linux-kernel

On Tue, May 12, 2015 at 3:23 AM, Linus Walleij <linus.walleij@linaro.org> wrote:
> On Thu, May 7, 2015 at 10:08 AM, Geert Uytterhoeven
> <geert@linux-m68k.org> wrote:
>
>> The GPIO subsystem provides dummy GPIO consumer functions if GPIOLIB is
>> not enabled. Hence drivers that depend on GPIOLIB, but use GPIO consumer
>> functionality only, can still be compiled if GPIOLIB is not enabled.
>>
>> Relax the dependency of LEDS_GPIO on GPIOLIB if COMPILE_TEST is
>> enabled.
>>
>> Signed-off-by: Geert Uytterhoeven <geert@linux-m68k.org>
>
> Acked-by: Linus Walleij <linus.walleij@linaro.org>
>
> Yours,
> Linus Walleij

Merged, thanks.
-Bryan

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

end of thread, other threads:[~2015-05-12 17:53 UTC | newest]

Thread overview: 14+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2015-05-07  8:08 [PATCH 0/3] leds: leds-gpio: Allow compile test if !GPIOLIB Geert Uytterhoeven
2015-05-07  8:08 ` [PATCH 1/3] gpiolib: Add missing dummies for the unified device properties interface Geert Uytterhoeven
2015-05-08 17:43   ` Bryan Wu
2015-05-12  7:48     ` Geert Uytterhoeven
2015-05-12  7:47   ` Alexandre Courbot
2015-05-12 10:31   ` Linus Walleij
2015-05-12 17:48     ` Bryan Wu
2015-05-07  8:08 ` [PATCH 2/3] leds: leds-gpio: Add missing #include <linux/of.h> Geert Uytterhoeven
2015-05-07 12:15   ` Jacek Anaszewski
2015-05-12 17:49     ` Bryan Wu
2015-05-07  8:08 ` [PATCH 3/3] leds: leds-gpio: Allow compile test if !GPIOLIB Geert Uytterhoeven
2015-05-07 12:15   ` Jacek Anaszewski
2015-05-12 10:23   ` Linus Walleij
2015-05-12 17:53     ` Bryan Wu

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