summaryrefslogtreecommitdiff
path: root/sound/soc/codecs/sn95031.c
diff options
context:
space:
mode:
authorAxel Lin <axel.lin@gmail.com>2011-09-30 13:56:59 +0800
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-09-30 12:56:16 +0100
commitf34dafb287a33ffda2f2a122daecedea474a4181 (patch)
tree98cb383415c1274feae7929e6f8723ac7eea2836 /sound/soc/codecs/sn95031.c
parent5992c58781a38e193caf2fb6a5f4808d84af8591 (diff)
ASoC: sn95031: Do not use static variable for channel_index
No reason to use static variable for channel_index. Signed-off-by: Axel Lin <axel.lin@gmail.com> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/codecs/sn95031.c')
-rw-r--r--sound/soc/codecs/sn95031.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c
index 8f8ce5f8acc6..5c5a4abfc001 100644
--- a/sound/soc/codecs/sn95031.c
+++ b/sound/soc/codecs/sn95031.c
@@ -102,7 +102,7 @@ static int sn95031_initialize_adc(struct snd_soc_codec *sn95031_codec)
{
int base_addr, chnl_addr;
int value;
- static int channel_index;
+ int channel_index;
/* Index of the first channel in which the stop bit is set */
channel_index = find_free_channel(sn95031_codec);