ASoC: sn95031: Do not use static variable for channel_index
authorAxel Lin <axel.lin@gmail.com>
Fri, 30 Sep 2011 05:56:59 +0000 (13:56 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 30 Sep 2011 11:56:16 +0000 (12:56 +0100)
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>
sound/soc/codecs/sn95031.c

index 8f8ce5f8acc6e0649359980cc90df38a1e9185f3..5c5a4abfc001acd9113fba098abd3b73e97f2a30 100644 (file)
@@ -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);