Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > linux.kernel > #1421007
| From | Arnd Bergmann <arnd@arndb.de> |
|---|---|
| Newsgroups | linux.kernel |
| Subject | [PATCH] ASoC: cs53l30: include gpio/consumer.h |
| Date | 2016-06-13 17:50 +0200 |
| Message-ID | <rJChH-8go-7@gated-at.bofh.it> (permalink) |
| References | <rJC81-8aA-3@gated-at.bofh.it> |
| Organization | linux.* mail to news gateway |
When GPIOLIB is disabled, we don't see the declarations from
gpio/consumer.h, so we have to include the header explicitly
to avoid this build error:
sound/soc/codecs/cs53l30.c: In function 'cs53l30_i2c_probe':
sound/soc/codecs/cs53l30.c:931:24: 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)
GPIOD_OUT_LOW);
^~~~~~~~~~~~~
sound/soc/codecs/cs53l30.c:932:13: note: each undeclared identifier is reported only once for each function it appears in
sound/soc/codecs/cs53l30.c:939:3: error: implicit declaration of function 'gpiod_set_value_cansleep' [-Werror=implicit-function-declaration]
gpiod_set_value_cansleep(cs53l30->reset_gpio, 1);
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
---
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 ac90dd79857e..aa511e70099e 100644
--- a/sound/soc/codecs/cs53l30.c
+++ b/sound/soc/codecs/cs53l30.c
@@ -17,6 +17,7 @@
#include <linux/i2c.h>
#include <linux/module.h>
#include <linux/of_gpio.h>
+#include <linux/gpio/consumer.h>
#include <linux/regulator/consumer.h>
#include <sound/pcm_params.h>
#include <sound/soc.h>
--
2.7.0
Back to linux.kernel | Previous | Next — Previous in thread | Next in thread | Find similar | Unroll thread
[PATCH] ASoC: wm8985: add i2c dependency Arnd Bergmann <arnd@arndb.de> - 2016-06-13 17:40 +0200
[PATCH] ASoC: cs53l30: include gpio/consumer.h Arnd Bergmann <arnd@arndb.de> - 2016-06-13 17:50 +0200
Applied "ASoC: cs53l30: include gpio/consumer.h" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-06-13 19:00 +0200
[PATCH] ASoC: pcm1681/pcm1791: fix typo in declaration Arnd Bergmann <arnd@arndb.de> - 2016-06-13 17:50 +0200
Applied "ASoC: pcm1681/pcm1791: fix typo in declaration" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-06-13 19:00 +0200
[PATCH] ASoC: rcar: fix 'const static' variables Arnd Bergmann <arnd@arndb.de> - 2016-06-13 17:50 +0200
Applied "ASoC: rcar: fix 'const static' variables" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-06-13 19:00 +0200
Applied "ASoC: wm8985: add i2c dependency" to the asoc tree Mark Brown <broonie@kernel.org> - 2016-06-13 19:00 +0200
csiph-web