From: Axel Lin Date: Fri, 30 Sep 2011 05:56:59 +0000 (+0800) Subject: ASoC: sn95031: Do not use static variable for channel_index X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=f34dafb287a33ffda2f2a122daecedea474a4181;p=~shefty%2Frdma-dev.git ASoC: sn95031: Do not use static variable for channel_index No reason to use static variable for channel_index. Signed-off-by: Axel Lin Signed-off-by: Mark Brown --- diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c index 8f8ce5f8acc..5c5a4abfc00 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);