summaryrefslogtreecommitdiffstats
path: root/sound/soc
diff options
context:
space:
mode:
authorColin Ian King2018-06-06 11:35:04 +0200
committerMark Brown2018-06-18 13:54:38 +0200
commit510e419cb85798915c6426c496a164ec6328d1a7 (patch)
tree6c7bee06d2932fc2c9461444115b0218402afed1 /sound/soc
parentASoC: qcom: apq8096: set card as device drvdata (diff)
downloadkernel-qcow2-linux-510e419cb85798915c6426c496a164ec6328d1a7.tar.gz
kernel-qcow2-linux-510e419cb85798915c6426c496a164ec6328d1a7.tar.xz
kernel-qcow2-linux-510e419cb85798915c6426c496a164ec6328d1a7.zip
ASoC: twl6040: make pointer dmic_codec_dev static
The pointer dmic_codec_dev is local to the source and does not need to be in global scope, so make it static. Cleans up sparse warning: warning: symbol 'dmic_codec_dev' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Acked-by: Peter Ujfalusi <peter.ujfalusi@ti.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc')
-rw-r--r--sound/soc/omap/omap-abe-twl6040.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/omap/omap-abe-twl6040.c b/sound/soc/omap/omap-abe-twl6040.c
index 15ccbf479c96..d5ae9eb8c756 100644
--- a/sound/soc/omap/omap-abe-twl6040.c
+++ b/sound/soc/omap/omap-abe-twl6040.c
@@ -40,7 +40,7 @@ struct abe_twl6040 {
int mclk_freq; /* MCLK frequency speed for twl6040 */
};
-struct platform_device *dmic_codec_dev;
+static struct platform_device *dmic_codec_dev;
static int omap_abe_hw_params(struct snd_pcm_substream *substream,
struct snd_pcm_hw_params *params)