ASoC: ep93xx-i2s: Staticize non exported struct
Subsystems (3)
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
@@ -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
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
@@ -289,7 +289,7 @@ static snd_pcm_uframes_t kirkwood_dma_pointer(struct snd_pcm_substreamreturn 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
Re: [PATCH 02/11] ASoC: kirkwood-dma: Staticize non exported struct
Quoted 2 lines · Lars-Peter Clausen
The
kirkwood_dma_opsstruct is not used outside ofkirkwood-dma.c, so make it static.
Applied, thanks.
PATCH 3/11 ASoC: spear: spdif_in: Staticize non exported struct
In reply to Lars-Peter ClausenThe 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
@@ -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
Re: [PATCH 03/11] ASoC: spear: spdif_in: Staticize non exported struct
Quoted 13 lines · Lars-Peter Clausen
The
spdif_in_daistruct is not used outside ofspdif_in.c, so make it static.Cc Rajeev Kumar<[email protected]>Signed-off-by Lars-Peter Clausen<[email protected]>--- sound/soc/spear/spdif_in.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/spear/spdif_in.c +0
-0
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 ,
Re: [PATCH 03/11] ASoC: spear: spdif_in: Staticize non exported struct
In reply to Lars-Peter ClausenQuoted 1 line · Lars-Peter Clausen
The
spdif_in_daistruct is not used outside ofspdif_in.c, so make it static.
Applied, thanks.
PATCH 4/11 ASoC: spear: spdif_out: Staticize unexported function
In reply to Lars-Peter ClausenThe 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
@@ -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
Re: [PATCH 04/11] ASoC: spear: spdif_out: Staticize unexported function
Quoted 13 lines · Lars-Peter Clausen
The
spdif_soc_dai_probefunction is only used inspdif_out.c, so make it static.Cc Rajeev Kumar<[email protected]>Signed-off-by Lars-Peter Clausen<[email protected]>--- sound/soc/spear/spdif_out.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)sound/soc/spear/spdif_out.c +0
-0
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);
Re: [PATCH 04/11] ASoC: spear: spdif_out: Staticize unexported function
In reply to Lars-Peter ClausenQuoted 1 line · Lars-Peter Clausen
The
spdif_soc_dai_probefunction is only used inspdif_out.c, so make it static.
Applied, thanks.
PATCH 5/11 ASoC: mmp-pcm: Staticize non exported structs and functions
In reply to Lars-Peter ClausenThe 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
@@ -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
PATCH 6/11 ASoC: mmp-sspa: Staticize non exported struct
In reply to Lars-Peter ClausenThe 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
@@ -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
PATCH 7/11 ASoC: bf5xx-tdm-pcm: Staticize non exported struct
In reply to Lars-Peter ClausenThe 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
@@ -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
Re: [PATCH 07/11] ASoC: bf5xx-tdm-pcm: Staticize non exported struct
Quoted 1 line · Lars-Peter Clausen
The
bf5xx_tdm_pcm_opsstruct is only used inbf5xx-tdm-pcm.c, so make it static.
Applied, thanks.
PATCH 8/11 ASoC: mop500_ab8500: Staticize non exported functions
In reply to Lars-Peter ClausenThe 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
@@ -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
Re: [PATCH 08/11] ASoC: mop500_ab8500: Staticize non exported functions
Quoted 3 lines · Lars-Peter Clausen
The
mop500_ab8500_startup(), themop500_ab8500_shutdown()and themop500_ab8500_hw_params()function are not used outside ofmop500_ab8500, so make them static.
Applied, thanks.
PATCH 9/11 ASoC: mop500: Staticize non exported struct
In reply to Lars-Peter ClausenThe 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
@@ -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
Re: [PATCH 09/11] ASoC: mop500: Staticize non exported struct
Quoted 1 line · Lars-Peter Clausen
The
mop500_dai_linksstruct is not used outside ofmop500.c, so make it static.
Applied, thanks.
PATCH 10/11 ASoC: sn95031: Staticize non exported struct
In reply to Lars-Peter ClausenThe 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
@@ -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
Re: [PATCH 10/11] ASoC: sn95031: Staticize non exported struct
Quoted 1 line · Lars-Peter Clausen
The
sn95031_codecstruct is not used outside ofsn95031.c, so make it static.
Applied, thanks.
PATCH 11/11 ASoC: davinci-sffsdr: Staticize non exported struct
In reply to Lars-Peter ClausenThe 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
@@ -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
Re: [PATCH 11/11] ASoC: davinci-sffsdr: Staticize non exported struct
Quoted 2 lines · Lars-Peter Clausen
The
pcm3008_codecstruct is not used outside ofdavinci-sffsdr.c, so make it static.
Applied, thanks
Quoted 2 lines · Lars-Peter Clausen
The
ep93xx_i2s_dma_datastruct is not used outside ofep93xx-i2s.c, so make it static.
Applied, thanks.