]> git.proxmox.com Git - mirror_ubuntu-disco-kernel.git/commitdiff
ASoC: twl6040: make pointer dmic_codec_dev static
authorColin Ian King <colin.king@canonical.com>
Wed, 6 Jun 2018 09:35:04 +0000 (10:35 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 18 Jun 2018 11:54:38 +0000 (12:54 +0100)
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>
sound/soc/omap/omap-abe-twl6040.c

index 15ccbf479c9664019159b215cbb5f97e2f37cd62..d5ae9eb8c7569f6364f8fc5173be2967cd9be092 100644 (file)
@@ -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)