Skip to contentSkip to conversation

ASoC: ep93xx-i2s: Staticize non exported struct

PATCH Applied Lars-Peter Clausen 3 participants 22 messages May 14, 2013 – May 15, 2013

Subsystems (3)
lore
Share & tools
lore
#0 lore raw

PATCH 1/11 ASoC: ep93xx-i2s: Staticize non exported struct

The ep93xx_i2s_dma_data struct is not used outside of ep93xx-i2s.c, so make it static.

---
 sound/soc/cirrus/ep93xx-i2s.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/cirrus/ep93xx-i2s.c +1 -1
index ef731e6..17ad70b 100644
@@ -63,7 +63,7 @@ struct ep93xx_i2s_info {
 	void __iomem			*regs;
 };
 
-struct ep93xx_dma_data ep93xx_i2s_dma_data[] = {
+static struct ep93xx_dma_data ep93xx_i2s_dma_data[] = {
 	[SNDRV_PCM_STREAM_PLAYBACK] = {
 		.name		= "i2s-pcm-out",
 		.port		= EP93XX_DMA_I2S1,
Signature · 1 line
1.8.0
#1 lore raw

PATCH 2/11 ASoC: kirkwood-dma: Staticize non exported struct

The kirkwood_dma_ops struct is not used outside of kirkwood-dma.c, so make it static.

---
 sound/soc/kirkwood/kirkwood-dma.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/kirkwood/kirkwood-dma.c +1 -1
index d3d4bdc..a9f1453 100644
@@ -289,7 +289,7 @@ static snd_pcm_uframes_t kirkwood_dma_pointer(struct snd_pcm_substream
 	return count;
 }
 
-struct snd_pcm_ops kirkwood_dma_ops = {
+static struct snd_pcm_ops kirkwood_dma_ops = {
 	.open =		kirkwood_dma_open,
 	.close =        kirkwood_dma_close,
 	.ioctl =	snd_pcm_lib_ioctl,
Signature · 1 line
1.8.0
maintainer Applied
#2 lore raw

Re: [PATCH 02/11] ASoC: kirkwood-dma: Staticize non exported struct

Quoted 2 lines · Lars-Peter Clausen

The kirkwood_dma_ops struct is not used outside of kirkwood-dma.c, so make it static.

Applied, thanks.

#3 lore raw

PATCH 3/11 ASoC: spear: spdif_in: Staticize non exported struct

In reply to Lars-Peter Clausen

The spdif_in_dai struct is not used outside of spdif_in.c, so make it static.

---
 sound/soc/spear/spdif_in.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/spear/spdif_in.c +1 -1
index 643ada6..f0071dd 100644
@@ -152,7 +152,7 @@ static struct snd_soc_dai_ops spdif_in_dai_ops = {
 	.hw_params	= spdif_in_hw_params,
 };
 
-struct snd_soc_dai_driver spdif_in_dai = {
+static struct snd_soc_dai_driver spdif_in_dai = {
 	.probe = spdif_in_dai_probe,
 	.capture = {
 		.channels_min = 2,
Signature · 1 line
1.8.0
Acked-by on v1 3/11
#4 lore raw

Re: [PATCH 03/11] ASoC: spear: spdif_in: Staticize non exported struct

Quoted 13 lines · Lars-Peter Clausen

The spdif_in_dai struct is not used outside of spdif_in.c, so make it static.

---
  sound/soc/spear/spdif_in.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/spear/spdif_in.c +0 -0
index 643ada6..f0071dd 100644

sound/soc/spear/spdif_in.c static struct snd_soc_dai_ops spdif_in_dai_ops = { · line 158

Quoted 8 lines
sound/soc/spear/spdif_in.c +1 -1
@@ -152,7 +152,7 @@ static struct snd_soc_dai_ops spdif_in_dai_ops = {
  	.hw_params	= spdif_in_hw_params,
  };
 
-struct snd_soc_dai_driver spdif_in_dai = {
+static struct snd_soc_dai_driver spdif_in_dai = {
  	.probe = spdif_in_dai_probe,
  	.capture = {
  		.channels_min = 2,
maintainer Applied
#5 lore raw

Re: [PATCH 03/11] ASoC: spear: spdif_in: Staticize non exported struct

In reply to Lars-Peter Clausen
Quoted 1 line · Lars-Peter Clausen

The spdif_in_dai struct is not used outside of spdif_in.c, so make it static.

Applied, thanks.

#6 lore raw

PATCH 4/11 ASoC: spear: spdif_out: Staticize unexported function

In reply to Lars-Peter Clausen

The spdif_soc_dai_probe function is only used in spdif_out.c, so make it static.

---
 sound/soc/spear/spdif_out.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/spear/spdif_out.c +1 -1
index fd25cc5..4bde512 100644
@@ -240,7 +240,7 @@ static const struct snd_kcontrol_new spdif_out_controls[] = {
 			spdif_mute_get, spdif_mute_put),
 };
 
-int spdif_soc_dai_probe(struct snd_soc_dai *dai)
+static int spdif_soc_dai_probe(struct snd_soc_dai *dai)
 {
 	struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai);
 
Signature · 1 line
1.8.0
Acked-by on v1 4/11
#7 lore raw

Re: [PATCH 04/11] ASoC: spear: spdif_out: Staticize unexported function

Quoted 13 lines · Lars-Peter Clausen

The spdif_soc_dai_probe function is only used in spdif_out.c, so make it static.

---
  sound/soc/spear/spdif_out.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/spear/spdif_out.c +0 -0
index fd25cc5..4bde512 100644

sound/soc/spear/spdif_out.c static const struct snd_kcontrol_new spdif_out_controls[] = { · line 246

Quoted 8 lines
sound/soc/spear/spdif_out.c +1 -1
@@ -240,7 +240,7 @@ static const struct snd_kcontrol_new spdif_out_controls[] = {
  			spdif_mute_get, spdif_mute_put),
  };
 
-int spdif_soc_dai_probe(struct snd_soc_dai *dai)
+static int spdif_soc_dai_probe(struct snd_soc_dai *dai)
  {
  	struct spdif_out_dev *host = snd_soc_dai_get_drvdata(dai);
 
maintainer Applied
#8 lore raw

Re: [PATCH 04/11] ASoC: spear: spdif_out: Staticize unexported function

In reply to Lars-Peter Clausen
Quoted 1 line · Lars-Peter Clausen

The spdif_soc_dai_probe function is only used in spdif_out.c, so make it static.

Applied, thanks.

#9 lore raw

PATCH 5/11 ASoC: mmp-pcm: Staticize non exported structs and functions

In reply to Lars-Peter Clausen

The mmp_pcm_ops and mmp_soc_platform struct as well as the mmp_pcm_new() function are only used in mmp-pcm.c, so make them static.

---
 sound/soc/pxa/mmp-pcm.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/pxa/mmp-pcm.c +3 -3
index 3499300..5d57e07 100644
@@ -147,7 +147,7 @@ static int mmp_pcm_mmap(struct snd_pcm_substream *substream,
 		vma->vm_end - vma->vm_start, vma->vm_page_prot);
 }
 
-struct snd_pcm_ops mmp_pcm_ops = {
+static struct snd_pcm_ops mmp_pcm_ops = {
 	.open		= mmp_pcm_open,
 	.close		= snd_dmaengine_pcm_close_release_chan,
 	.ioctl		= snd_pcm_lib_ioctl,
@@ -208,7 +208,7 @@ static int mmp_pcm_preallocate_dma_buffer(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-int mmp_pcm_new(struct snd_soc_pcm_runtime *rtd)
+static int mmp_pcm_new(struct snd_soc_pcm_runtime *rtd)
 {
 	struct snd_pcm_substream *substream;
 	struct snd_pcm *pcm = rtd->pcm;
@@ -229,7 +229,7 @@ err:
 	return ret;
 }
 
-struct snd_soc_platform_driver mmp_soc_platform = {
+static struct snd_soc_platform_driver mmp_soc_platform = {
 	.ops		= &mmp_pcm_ops,
 	.pcm_new	= mmp_pcm_new,
 	.pcm_free	= mmp_pcm_free_dma_buffers,
Signature · 1 line
1.8.0
#10 lore raw

PATCH 6/11 ASoC: mmp-sspa: Staticize non exported struct

In reply to Lars-Peter Clausen

The mmp_sspa_dai struct is only used in mmp-sspa.c, so make it static.

---
 sound/soc/pxa/mmp-sspa.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/pxa/mmp-sspa.c +1 -1
index a647799..62142ce 100644
@@ -388,7 +388,7 @@ static struct snd_soc_dai_ops mmp_sspa_dai_ops = {
 	.set_fmt	= mmp_sspa_set_dai_fmt,
 };
 
-struct snd_soc_dai_driver mmp_sspa_dai = {
+static struct snd_soc_dai_driver mmp_sspa_dai = {
 	.probe = mmp_sspa_probe,
 	.playback = {
 		.channels_min = 1,
Signature · 1 line
1.8.0
#11 lore raw

PATCH 7/11 ASoC: bf5xx-tdm-pcm: Staticize non exported struct

In reply to Lars-Peter Clausen

The bf5xx_tdm_pcm_ops struct is only used in bf5xx-tdm-pcm.c, so make it static.

---
 sound/soc/blackfin/bf5xx-tdm-pcm.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
sound/soc/blackfin/bf5xx-tdm-pcm.c +1 -2
index 0e6b888..19e855d 100644
@@ -229,8 +229,7 @@ static int bf5xx_pcm_silence(struct snd_pcm_substream *substream,
 	return 0;
 }
 
-
-struct snd_pcm_ops bf5xx_pcm_tdm_ops = {
+static struct snd_pcm_ops bf5xx_pcm_tdm_ops = {
 	.open           = bf5xx_pcm_open,
 	.ioctl          = snd_pcm_lib_ioctl,
 	.hw_params      = bf5xx_pcm_hw_params,
Signature · 1 line
1.8.0
maintainer Applied
#12 lore raw

Re: [PATCH 07/11] ASoC: bf5xx-tdm-pcm: Staticize non exported struct

Quoted 1 line · Lars-Peter Clausen

The bf5xx_tdm_pcm_ops struct is only used in bf5xx-tdm-pcm.c, so make it static.

Applied, thanks.

#13 lore raw

PATCH 8/11 ASoC: mop500_ab8500: Staticize non exported functions

In reply to Lars-Peter Clausen

The mop500_ab8500_startup(), the mop500_ab8500_shutdown() and the mop500_ab8500_hw_params() function are not used outside of mop500_ab8500, so make them static.

---
 sound/soc/ux500/mop500_ab8500.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
sound/soc/ux500/mop500_ab8500.c +3 -3
index 44e25a2..884a362 100644
@@ -183,7 +183,7 @@ static struct snd_kcontrol_new mop500_ab8500_ctrls[] = {
 
 /* ASoC */
 
-int mop500_ab8500_startup(struct snd_pcm_substream *substream)
+static int mop500_ab8500_startup(struct snd_pcm_substream *substream)
 {
 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
 
@@ -192,7 +192,7 @@ int mop500_ab8500_startup(struct snd_pcm_substream *substream)
 				snd_soc_card_get_drvdata(rtd->card));
 }
 
-void mop500_ab8500_shutdown(struct snd_pcm_substream *substream)
+static void mop500_ab8500_shutdown(struct snd_pcm_substream *substream)
 {
 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
 	struct device *dev = rtd->card->dev;
@@ -206,7 +206,7 @@ void mop500_ab8500_shutdown(struct snd_pcm_substream *substream)
 		rx_slots = DEF_RX_SLOTS;
 }
 
-int mop500_ab8500_hw_params(struct snd_pcm_substream *substream,
+static int mop500_ab8500_hw_params(struct snd_pcm_substream *substream,
 			struct snd_pcm_hw_params *params)
 {
 	struct snd_soc_pcm_runtime *rtd = substream->private_data;
Signature · 1 line
1.8.0
maintainer Applied
#14 lore raw

Re: [PATCH 08/11] ASoC: mop500_ab8500: Staticize non exported functions

Quoted 3 lines · Lars-Peter Clausen

The mop500_ab8500_startup(), the mop500_ab8500_shutdown() and the mop500_ab8500_hw_params() function are not used outside of mop500_ab8500, so make them static.

Applied, thanks.

#15 lore raw

PATCH 9/11 ASoC: mop500: Staticize non exported struct

In reply to Lars-Peter Clausen

The mop500_dai_links struct is not used outside of mop500.c, so make it static.

---
 sound/soc/ux500/mop500.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/ux500/mop500.c +1 -1
index 204b899..8f5cd00 100644
@@ -27,7 +27,7 @@
 #include "mop500_ab8500.h"
 
 /* Define the whole MOP500 soundcard, linking platform to the codec-drivers  */
-struct snd_soc_dai_link mop500_dai_links[] = {
+static struct snd_soc_dai_link mop500_dai_links[] = {
 	{
 		.name = "ab8500_0",
 		.stream_name = "ab8500_0",
Signature · 1 line
1.8.0
maintainer Applied
#16 lore raw

Re: [PATCH 09/11] ASoC: mop500: Staticize non exported struct

Quoted 1 line · Lars-Peter Clausen

The mop500_dai_links struct is not used outside of mop500.c, so make it static.

Applied, thanks.

#17 lore raw

PATCH 10/11 ASoC: sn95031: Staticize non exported struct

In reply to Lars-Peter Clausen

The sn95031_codec struct is not used outside of sn95031.c, so make it static.

---
 sound/soc/codecs/sn95031.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/sn95031.c +1 -1
index d1ae869d..dba26e63 100644
@@ -883,7 +883,7 @@ static int sn95031_codec_remove(struct snd_soc_codec *codec)
 	return 0;
 }
 
-struct snd_soc_codec_driver sn95031_codec = {
+static struct snd_soc_codec_driver sn95031_codec = {
 	.probe		= sn95031_codec_probe,
 	.remove		= sn95031_codec_remove,
 	.read		= sn95031_read,
Signature · 1 line
1.8.0
maintainer Applied
#18 lore raw

Re: [PATCH 10/11] ASoC: sn95031: Staticize non exported struct

Quoted 1 line · Lars-Peter Clausen

The sn95031_codec struct is not used outside of sn95031.c, so make it static.

Applied, thanks.

#19 lore raw

PATCH 11/11 ASoC: davinci-sffsdr: Staticize non exported struct

In reply to Lars-Peter Clausen

The pcm3008_codec struct is not used outside of davinci-sffsdr.c, so make it static.

---
 sound/soc/davinci/davinci-sffsdr.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/davinci/davinci-sffsdr.c +1 -1
index 5be65aa..24df5bc 100644
@@ -106,7 +106,7 @@ static struct pcm3008_setup_data sffsdr_pcm3008_setup = {
 	.pdda_pin = GPIO(38),
 };
 
-struct platform_device pcm3008_codec = {
+static struct platform_device pcm3008_codec = {
 		.name = "pcm3008-codec",
 		.id = 0,
 		.dev = {
Signature · 1 line
1.8.0
maintainer Applied
#20 lore raw

Re: [PATCH 11/11] ASoC: davinci-sffsdr: Staticize non exported struct

Quoted 2 lines · Lars-Peter Clausen

The pcm3008_codec struct is not used outside of davinci-sffsdr.c, so make it static.

Applied, thanks