* [PATCH] ASoC: sn95031: Do not use static variable for channel_index
@ 2011-09-30 5:56 Axel Lin
2011-09-30 11:51 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Axel Lin @ 2011-09-30 5:56 UTC (permalink / raw)
To: linux-kernel
Cc: Vinod Koul, Harsha Priya, Liam Girdwood, alsa-devel, Mark Brown
No reason to use static variable for channel_index.
Signed-off-by: Axel Lin <axel.lin@gmail.com>
---
sound/soc/codecs/sn95031.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c
index adb85bf..02a4857 100644
--- a/sound/soc/codecs/sn95031.c
+++ b/sound/soc/codecs/sn95031.c
@@ -103,7 +103,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);
--
1.7.4.1
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ASoC: sn95031: Do not use static variable for channel_index
2011-09-30 5:56 [PATCH] ASoC: sn95031: Do not use static variable for channel_index Axel Lin
@ 2011-09-30 11:51 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2011-09-30 11:51 UTC (permalink / raw)
To: Axel Lin
Cc: Vinod Koul, Harsha Priya, linux-kernel, alsa-devel, Liam Girdwood
On Fri, Sep 30, 2011 at 01:56:59PM +0800, Axel Lin wrote:
> No reason to use static variable for channel_index.
Applied, thanks.
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2011-09-30 11:51 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-09-30 5:56 [PATCH] ASoC: sn95031: Do not use static variable for channel_index Axel Lin
2011-09-30 11:51 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).