]> git.baikalelectronics.ru Git - kernel.git/commitdiff
ASoC: wm8988: fix typo in wm8988_right_line_controls
authorYueHaibing <yuehaibing@huawei.com>
Thu, 22 Aug 2019 14:36:08 +0000 (22:36 +0800)
committerMark Brown <broonie@kernel.org>
Thu, 22 Aug 2019 17:28:43 +0000 (18:28 +0100)
sound/soc/codecs/wm8988.c:270:30: warning:
 wm8988_rline_enum defined but not used [-Wunused-const-variable=]

wm8988_rline_enum should be used in wm8988_right_line_controls.

Reported-by: Hulk Robot <hulkci@huawei.com>
Fixes: b1a295055a40 ("ASoC: Add WM8988 CODEC driver")
Signed-off-by: YueHaibing <yuehaibing@huawei.com>
Link: https://lore.kernel.org/r/20190822143608.59824-1-yuehaibing@huawei.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/wm8988.c

index 25e74cf0666aa2402835f74df2ca338c66685e8f..85bfd041d5465af13ce5993a5449fb6df23ee325 100644 (file)
@@ -273,7 +273,7 @@ static const struct soc_enum wm8988_rline_enum =
                              wm8988_line_texts,
                              wm8988_line_values);
 static const struct snd_kcontrol_new wm8988_right_line_controls =
-       SOC_DAPM_ENUM("Route", wm8988_lline_enum);
+       SOC_DAPM_ENUM("Route", wm8988_rline_enum);
 
 /* Left Mixer */
 static const struct snd_kcontrol_new wm8988_left_mixer_controls[] = {