aboutsummaryrefslogtreecommitdiffstats
path: root/sound
diff options
context:
space:
mode:
authorNathan Huckleberry <nhuck@google.com>2019-06-12 16:25:02 -0700
committerMark Brown <broonie@kernel.org>2019-06-13 19:46:52 +0100
commit2f7e015c1f20cfdbe97df25868abbfa8b7514778 (patch)
tree6fcd6f058dea59486871ac2623c9e7b0860ebfbc /sound
parentASoC: meson: axg-tdm: consistently use SND_SOC_DAIFMT defines (diff)
downloadlinux-dev-2f7e015c1f20cfdbe97df25868abbfa8b7514778.tar.xz
linux-dev-2f7e015c1f20cfdbe97df25868abbfa8b7514778.zip
ASoC: tas571x: Fix -Wunused-const-variable
Clang produces the following warning sound/soc/codecs/tas571x.c:666:38: warning: unused variable 'tas5721_controls' [-Wunused-const-variable] In the chip struct definition tas5711_controls is used rather than tac5712_controls. Looks like a typo was made in the original commit. Since tac5711_controls is identical to tas5721_controls we can just swap them Cc: clang-built-linux@googlegroups.com Link: https://github.com/ClangBuiltLinux/linux/issues/522 Signed-off-by: Nathan Huckleberry <nhuck@google.com> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound')
-rw-r--r--sound/soc/codecs/tas571x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/tas571x.c b/sound/soc/codecs/tas571x.c
index ca2dfe12344e..684b7afa9252 100644
--- a/sound/soc/codecs/tas571x.c
+++ b/sound/soc/codecs/tas571x.c
@@ -725,8 +725,8 @@ static const struct regmap_config tas5721_regmap_config = {
static const struct tas571x_chip tas5721_chip = {
.supply_names = tas5721_supply_names,
.num_supply_names = ARRAY_SIZE(tas5721_supply_names),
- .controls = tas5711_controls,
- .num_controls = ARRAY_SIZE(tas5711_controls),
+ .controls = tas5721_controls,
+ .num_controls = ARRAY_SIZE(tas5721_controls),
.regmap_config = &tas5721_regmap_config,
.vol_reg_size = 1,
};