]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commitdiff
ASoC: amd: acp3x: Make acp3x_dai_i2s_ops static
authorYueHaibing <yuehaibing@huawei.com>
Tue, 16 Apr 2019 14:52:51 +0000 (22:52 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 2 May 2019 01:46:03 +0000 (10:46 +0900)
Fix sparse warning:

sound/soc/amd/raven/acp3x-pcm-dma.c:561:24: warning:
 symbol 'acp3x_dai_i2s_ops' was not declared. Should it be static?

Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/amd/raven/acp3x-pcm-dma.c

index 1a2e15ff145648abb2b914b9c0625875da1e2424..9775bda2a4ca3e6c380959ef5c7acbf33bb97694 100644 (file)
@@ -558,7 +558,7 @@ static int acp3x_dai_i2s_trigger(struct snd_pcm_substream *substream,
        return ret;
 }
 
-struct snd_soc_dai_ops acp3x_dai_i2s_ops = {
+static struct snd_soc_dai_ops acp3x_dai_i2s_ops = {
        .hw_params = acp3x_dai_i2s_hwparams,
        .trigger   = acp3x_dai_i2s_trigger,
        .set_fmt = acp3x_dai_i2s_set_fmt,