Skip to contentSkip to conversation

ASoC: Staticise sst_pcm_new and sst_soc_platform_drv

PATCH Applied Axel Lin 3 participants 3 messages Dec 13, 2011 – Dec 14, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/1 ASoC: Staticise sst_pcm_new and sst_soc_platform_drv

---
 sound/soc/mid-x86/sst_platform.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/mid-x86/sst_platform.c +2 -2
index 24f9471..5b936d5 100644
@@ -443,7 +443,7 @@ static void sst_pcm_free(struct snd_pcm *pcm)
 	snd_pcm_lib_preallocate_free_for_all(pcm);
 }
 
-int sst_pcm_new(struct snd_soc_pcm_runtime *rtd)
+static int sst_pcm_new(struct snd_soc_pcm_runtime *rtd)
 {
 	struct snd_soc_dai *dai = rtd->cpu_dai;
 	struct snd_pcm *pcm = rtd->pcm;
@@ -463,7 +463,7 @@ int sst_pcm_new(struct snd_soc_pcm_runtime *rtd)
 	}
 	return retval;
 }
-struct snd_soc_platform_driver sst_soc_platform_drv = {
+static struct snd_soc_platform_driver sst_soc_platform_drv = {
 	.ops		= &sst_platform_ops,
 	.pcm_new	= sst_pcm_new,
 	.pcm_free	= sst_pcm_free,
Signature · 1 line
1.7.5.4
#1 lore raw
Quoted 19 lines · Axel Lin
---
 sound/soc/mid-x86/sst_platform.c |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
sound/soc/mid-x86/sst_platform.c +1 -1
index 24f9471..5b936d5 100644
@@ -443,7 +443,7 @@ static void sst_pcm_free(struct snd_pcm *pcm)
 	snd_pcm_lib_preallocate_free_for_all(pcm);
 }
 
-int sst_pcm_new(struct snd_soc_pcm_runtime *rtd)
+static int sst_pcm_new(struct snd_soc_pcm_runtime *rtd)
 {
 	struct snd_soc_dai *dai = rtd->cpu_dai;
 	struct snd_pcm *pcm = rtd->pcm;

sound/soc/mid-x86/sst_platform.c int sst_pcm_new(struct snd_soc_pcm_runtime *rtd) · line 469

Quoted 8 lines
sound/soc/mid-x86/sst_platform.c +1 -1
@@ -463,7 +463,7 @@ int sst_pcm_new(struct snd_soc_pcm_runtime *rtd)
 	}
 	return retval;
 }
-struct snd_soc_platform_driver sst_soc_platform_drv = {
+static struct snd_soc_platform_driver sst_soc_platform_drv = {
 	.ops		= &sst_platform_ops,
 	.pcm_new	= sst_pcm_new,
 	.pcm_free	= sst_pcm_free,

Acked-by Vinod Koul <[email protected]>

Signature · 1 line
~Vinod