Blob Blame History Raw
From a79ee2e095c0a60c32d5b1fce39d58e0fc4d9ec5 Mon Sep 17 00:00:00 2001
From: YueHaibing <yuehaibing@huawei.com>
Date: Mon, 2 Mar 2020 15:05:22 +0800
Subject: [PATCH] ASoC: rt1015: set snd_soc_dai_ops in rt1015_dai driver
Git-commit: a79ee2e095c0a60c32d5b1fce39d58e0fc4d9ec5
Patch-mainline: v5.7-rc1
References: jsc#SLE-16518

snd_soc_dai_driver should set ops in rt1015_dai driver.
Also make the two variable static to fix sparse warnings.

Fixes: df31007400c3 ("ASoC: rt1015: add rt1015 amplifier driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20200302070522.48104-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
Acked-by: Takashi Iwai <tiwai@suse.de>

---
 sound/soc/codecs/rt1015.c |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

--- a/sound/soc/codecs/rt1015.c
+++ b/sound/soc/codecs/rt1015.c
@@ -857,7 +857,7 @@ static struct snd_soc_dai_driver rt1015_
 			.rates = RT1015_STEREO_RATES,
 			.formats = RT1015_FORMATS,
 		},
-		.ops = &rt1015_aif_dai_ops,
+		.ops    = &rt1015_aif_dai_ops,
 	}
 };