aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-12-07 09:11:32 -0500
committerMark Brown <broonie@kernel.org>2017-12-07 09:21:25 -0500
commitdce231a484f72983cd7d5832aed4da04870a4d47 (patch)
tree6a23be20531b01c82fd527f893ec57b823969ce8
parenteb2a8168b9fd69f66199d9d7e86d23fecfab4e33 (diff)
ASoC: pcm186x: make pcm186x_dai_ops and pcm186x_adc_input_channel_sel_value static
pcm186x_dai_ops and pcm186x_adc_input_channel_sel_value are local to the source and do not need to be in global scope, so make them static. Cleans up sparse warnings: symbol 'pcm186x_dai_ops' was not declared. Should it be static? symbol 'pcm186x_adc_input_channel_sel_value' was not declared. Should it be static? Signed-off-by: Colin Ian King <colin.king@canonical.com> Signed-off-by: Mark Brown <broonie@kernel.org>
-rw-r--r--sound/soc/codecs/pcm186x.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sound/soc/codecs/pcm186x.c b/sound/soc/codecs/pcm186x.c
index f7aa56e20169..cdb51427facc 100644
--- a/sound/soc/codecs/pcm186x.c
+++ b/sound/soc/codecs/pcm186x.c
@@ -59,7 +59,7 @@ static const struct snd_kcontrol_new pcm1865_snd_controls[] = {
59 pcm186x_pga_tlv), 59 pcm186x_pga_tlv),
60}; 60};
61 61
62const unsigned int pcm186x_adc_input_channel_sel_value[] = { 62static const unsigned int pcm186x_adc_input_channel_sel_value[] = {
63 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07, 63 0x00, 0x01, 0x02, 0x03, 0x04, 0x05, 0x06, 0x07,
64 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f, 64 0x08, 0x09, 0x0a, 0x0b, 0x0c, 0x0d, 0x0e, 0x0f,
65 0x10, 0x20, 0x30 65 0x10, 0x20, 0x30
@@ -475,7 +475,7 @@ static int pcm186x_set_dai_sysclk(struct snd_soc_dai *dai, int clk_id,
475 return 0; 475 return 0;
476} 476}
477 477
478const struct snd_soc_dai_ops pcm186x_dai_ops = { 478static const struct snd_soc_dai_ops pcm186x_dai_ops = {
479 .set_sysclk = pcm186x_set_dai_sysclk, 479 .set_sysclk = pcm186x_set_dai_sysclk,
480 .set_tdm_slot = pcm186x_set_tdm_slot, 480 .set_tdm_slot = pcm186x_set_tdm_slot,
481 .set_fmt = pcm186x_set_fmt, 481 .set_fmt = pcm186x_set_fmt,