* [PATCH V2 linux-next] ASoC: cs53l30: include gpio/consumer.h
@ 2016-06-06 17:05 Fabian Frederick
2016-06-06 17:30 ` [alsa-devel] " Handrigan, Paul
2016-06-06 17:36 ` Nicolin Chen
0 siblings, 2 replies; 3+ messages in thread
From: Fabian Frederick @ 2016-06-06 17:05 UTC (permalink / raw)
To: Nicolin Chen; +Cc: alsa-devel, linux-kernel, fabf
cs53l30 breaks kernel compilation when CONFIG_GPIOLIB is disabled.
sound/soc/codecs/cs53l30.c:931:2: error: implicit declaration of
function devm_gpiod_get_optional [-Werror=implicit-function-declaration]
cs53l30->reset_gpio = devm_gpiod_get_optional(dev, "reset",
^
sound/soc/codecs/cs53l30.c:932:13: error: GPIOD_OUT_LOW undeclared
(first use in this function)
Including gpio/consumer.h declares minimal functions in that case.
Signed-off-by: Fabian Frederick <fabf@skynet.be>
---
V2:
Add in alphabetical order (suggested by Nicolin Chen)
sound/soc/codecs/cs53l30.c | 1 +
1 file changed, 1 insertion(+)
diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c
index ac90dd7..4f6ede9 100644
--- a/sound/soc/codecs/cs53l30.c
+++ b/sound/soc/codecs/cs53l30.c
@@ -14,6 +14,7 @@
#include <linux/clk.h>
#include <linux/delay.h>
+#include <linux/gpio/consumer.h>
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of_gpio.h>
--
2.1.4
^ permalink raw reply related [flat|nested] 3+ messages in thread
* Re: [alsa-devel] [PATCH V2 linux-next] ASoC: cs53l30: include gpio/consumer.h
2016-06-06 17:05 [PATCH V2 linux-next] ASoC: cs53l30: include gpio/consumer.h Fabian Frederick
@ 2016-06-06 17:30 ` Handrigan, Paul
2016-06-06 17:36 ` Nicolin Chen
1 sibling, 0 replies; 3+ messages in thread
From: Handrigan, Paul @ 2016-06-06 17:30 UTC (permalink / raw)
To: Fabian Frederick, Nicolin Chen
Cc: alsa-devel, linux-kernel, broonie, Liam Girdwood
On 6/6/16, 12:05 PM, "Fabian Frederick" <fabf@skynet.be> wrote:
>cs53l30 breaks kernel compilation when CONFIG_GPIOLIB is disabled.
>
>sound/soc/codecs/cs53l30.c:931:2: error: implicit declaration of
>function devm_gpiod_get_optional [-Werror=implicit-function-declaration]
> cs53l30->reset_gpio = devm_gpiod_get_optional(dev, "reset",
> ^
>sound/soc/codecs/cs53l30.c:932:13: error: GPIOD_OUT_LOW undeclared
>(first use in this function)
>
>Including gpio/consumer.h declares minimal functions in that case.
>
>Signed-off-by: Fabian Frederick <fabf@skynet.be>
>---
>V2:
> Add in alphabetical order (suggested by Nicolin Chen)
>
> sound/soc/codecs/cs53l30.c | 1 +
> 1 file changed, 1 insertion(+)
>
>diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c
>index ac90dd7..4f6ede9 100644
>--- a/sound/soc/codecs/cs53l30.c
>+++ b/sound/soc/codecs/cs53l30.c
>@@ -14,6 +14,7 @@
>
> #include <linux/clk.h>
> #include <linux/delay.h>
>+#include <linux/gpio/consumer.h>
> #include <linux/i2c.h>
> #include <linux/module.h>
> #include <linux/of_gpio.h>
>--
>2.1.4
Thanks!
Acked-by: Paul Handrigan <Paul.Handrigan@cirrus.com>
^ permalink raw reply [flat|nested] 3+ messages in thread
* Re: [PATCH V2 linux-next] ASoC: cs53l30: include gpio/consumer.h
2016-06-06 17:05 [PATCH V2 linux-next] ASoC: cs53l30: include gpio/consumer.h Fabian Frederick
2016-06-06 17:30 ` [alsa-devel] " Handrigan, Paul
@ 2016-06-06 17:36 ` Nicolin Chen
1 sibling, 0 replies; 3+ messages in thread
From: Nicolin Chen @ 2016-06-06 17:36 UTC (permalink / raw)
To: Fabian Frederick; +Cc: alsa-devel, linux-kernel
On Mon, Jun 06, 2016 at 07:05:53PM +0200, Fabian Frederick wrote:
> cs53l30 breaks kernel compilation when CONFIG_GPIOLIB is disabled.
>
> sound/soc/codecs/cs53l30.c:931:2: error: implicit declaration of
> function devm_gpiod_get_optional [-Werror=implicit-function-declaration]
> cs53l30->reset_gpio = devm_gpiod_get_optional(dev, "reset",
> ^
> sound/soc/codecs/cs53l30.c:932:13: error: GPIOD_OUT_LOW undeclared
> (first use in this function)
>
> Including gpio/consumer.h declares minimal functions in that case.
>
> Signed-off-by: Fabian Frederick <fabf@skynet.be>
Acked-by: Nicolin Chen <nicoleotsuka@gmail.com>
Thank you
> ---
> V2:
> Add in alphabetical order (suggested by Nicolin Chen)
>
> sound/soc/codecs/cs53l30.c | 1 +
> 1 file changed, 1 insertion(+)
>
> diff --git a/sound/soc/codecs/cs53l30.c b/sound/soc/codecs/cs53l30.c
> index ac90dd7..4f6ede9 100644
> --- a/sound/soc/codecs/cs53l30.c
> +++ b/sound/soc/codecs/cs53l30.c
> @@ -14,6 +14,7 @@
>
> #include <linux/clk.h>
> #include <linux/delay.h>
> +#include <linux/gpio/consumer.h>
> #include <linux/i2c.h>
> #include <linux/module.h>
> #include <linux/of_gpio.h>
> --
> 2.1.4
>
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2016-06-06 17:36 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2016-06-06 17:05 [PATCH V2 linux-next] ASoC: cs53l30: include gpio/consumer.h Fabian Frederick
2016-06-06 17:30 ` [alsa-devel] " Handrigan, Paul
2016-06-06 17:36 ` Nicolin Chen
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.