ASoC: rt1015: modify some structure to be static.
authorJack Yu <jack.yu@realtek.com>
Thu, 27 Feb 2020 02:06:37 +0000 (10:06 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 28 Feb 2020 17:28:28 +0000 (17:28 +0000)
Modify rt1015_aif_dai_ops and rt1015_dai[] to be static.

Signed-off-by: Jack Yu <jack.yu@realtek.com>
Link: https://lore.kernel.org/r/20200227020637.15135-1-jack.yu@realtek.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt1015.c

index d300b417dd508cffb965d525747eae5a2909bf01..c118d030bd2d0fcf1b6b4489779cb149a81899b6 100644 (file)
@@ -841,12 +841,12 @@ static void rt1015_remove(struct snd_soc_component *component)
 #define RT1015_FORMATS (SNDRV_PCM_FMTBIT_S16_LE | SNDRV_PCM_FMTBIT_S20_3LE | \
                        SNDRV_PCM_FMTBIT_S24_LE | SNDRV_PCM_FMTBIT_S8)
 
-struct snd_soc_dai_ops rt1015_aif_dai_ops = {
+static struct snd_soc_dai_ops rt1015_aif_dai_ops = {
        .hw_params = rt1015_hw_params,
        .set_fmt = rt1015_set_dai_fmt,
 };
 
-struct snd_soc_dai_driver rt1015_dai[] = {
+static struct snd_soc_dai_driver rt1015_dai[] = {
        {
                .name = "rt1015-aif",
                .id = 0,