2015-02-11 22:12:01

by Vincent Stehlé

[permalink] [raw]
Subject: [PATCH] ASoC: max98357a: Fix missing include

This fixes the following compilation errors:

sound/soc/codecs/max98357a.c: In function ‘max98357a_daiops_trigger’:
sound/soc/codecs/max98357a.c:30:3: error: implicit declaration of function ‘gpiod_set_value’ [-Werror=implicit-function-declaration]
sound/soc/codecs/max98357a.c: In function ‘max98357a_codec_probe’:
sound/soc/codecs/max98357a.c:55:2: error: implicit declaration of function ‘devm_gpiod_get’ [-Werror=implicit-function-declaration]
sound/soc/codecs/max98357a.c:61:2: error: implicit declaration of function ‘gpiod_direction_output’ [-Werror=implicit-function-declaration]
cc1: some warnings being treated as errors

Signed-off-by: Vincent Stehlé <[email protected]>
Cc: Kenneth Westfield <[email protected]>
Cc: Mark Brown <[email protected]>
---


Hi,

Those compilation errors can be seen for example with hppa allmodconfig.

Best regards,

V.


sound/soc/codecs/max98357a.c | 1 +
1 file changed, 1 insertion(+)

diff --git a/sound/soc/codecs/max98357a.c b/sound/soc/codecs/max98357a.c
index 1806333..f493fb6 100644
--- a/sound/soc/codecs/max98357a.c
+++ b/sound/soc/codecs/max98357a.c
@@ -14,6 +14,7 @@

#include <linux/module.h>
#include <linux/gpio.h>
+#include <linux/gpio/consumer.h>
#include <sound/soc.h>

#define DRV_NAME "max98357a"
--
2.1.4


2015-02-12 03:05:18

by Mark Brown

[permalink] [raw]
Subject: Re: [PATCH] ASoC: max98357a: Fix missing include

On Wed, Feb 11, 2015 at 11:08:59PM +0100, Vincent Stehl? wrote:
> This fixes the following compilation errors:

Applied, thanks.


Attachments:
(No filename) (129.00 B)
signature.asc (473.00 B)
Digital signature
Download all attachments