alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH] ASoC: Staticise non-exported symbols in SGTL5000
@ 2011-02-28 14:33 Mark Brown
  2011-02-28 15:08 ` Liam Girdwood
  0 siblings, 1 reply; 2+ messages in thread
From: Mark Brown @ 2011-02-28 14:33 UTC (permalink / raw)
  To: zhaoming.zeng, Liam Girdwood; +Cc: alsa-devel, Mark Brown

Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
---
 sound/soc/codecs/sgtl5000.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
index b528f97..b7e97c0 100644
--- a/sound/soc/codecs/sgtl5000.c
+++ b/sound/soc/codecs/sgtl5000.c
@@ -124,7 +124,7 @@ static struct regulator_consumer_supply ldo_consumer[] = {
 	REGULATOR_SUPPLY(LDO_CONSUMER_NAME, NULL),
 };
 
-struct regulator_init_data ldo_init_data = {
+static struct regulator_init_data ldo_init_data = {
 	.constraints = {
 		.min_uV                 = 850000,
 		.max_uV                 = 1600000,
@@ -946,7 +946,7 @@ static int sgtl5000_set_bias_level(struct snd_soc_codec *codec,
 			SNDRV_PCM_FMTBIT_S24_LE |\
 			SNDRV_PCM_FMTBIT_S32_LE)
 
-struct snd_soc_dai_ops sgtl5000_ops = {
+static struct snd_soc_dai_ops sgtl5000_ops = {
 	.hw_params = sgtl5000_pcm_hw_params,
 	.digital_mute = sgtl5000_digital_mute,
 	.set_fmt = sgtl5000_set_dai_fmt,
@@ -1421,7 +1421,7 @@ static int sgtl5000_remove(struct snd_soc_codec *codec)
 	return 0;
 }
 
-struct snd_soc_codec_driver sgtl5000_driver = {
+static struct snd_soc_codec_driver sgtl5000_driver = {
 	.probe = sgtl5000_probe,
 	.remove = sgtl5000_remove,
 	.suspend = sgtl5000_suspend,
-- 
1.7.2.3

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] ASoC: Staticise non-exported symbols in SGTL5000
  2011-02-28 14:33 [PATCH] ASoC: Staticise non-exported symbols in SGTL5000 Mark Brown
@ 2011-02-28 15:08 ` Liam Girdwood
  0 siblings, 0 replies; 2+ messages in thread
From: Liam Girdwood @ 2011-02-28 15:08 UTC (permalink / raw)
  To: Mark Brown; +Cc: zhaoming.zeng, alsa-devel

On Mon, 2011-02-28 at 14:33 +0000, Mark Brown wrote:
> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
> ---
>  sound/soc/codecs/sgtl5000.c |    6 +++---
>  1 files changed, 3 insertions(+), 3 deletions(-)
> 
> diff --git a/sound/soc/codecs/sgtl5000.c b/sound/soc/codecs/sgtl5000.c
> index b528f97..b7e97c0 100644
> --- a/sound/soc/codecs/sgtl5000.c
> +++ b/sound/soc/codecs/sgtl5000.c
> @@ -124,7 +124,7 @@ static struct regulator_consumer_supply ldo_consumer[] = {
>  	REGULATOR_SUPPLY(LDO_CONSUMER_NAME, NULL),
>  };
>  
> -struct regulator_init_data ldo_init_data = {
> +static struct regulator_init_data ldo_init_data = {
>  	.constraints = {
>  		.min_uV                 = 850000,
>  		.max_uV                 = 1600000,
> @@ -946,7 +946,7 @@ static int sgtl5000_set_bias_level(struct snd_soc_codec *codec,
>  			SNDRV_PCM_FMTBIT_S24_LE |\
>  			SNDRV_PCM_FMTBIT_S32_LE)
>  
> -struct snd_soc_dai_ops sgtl5000_ops = {
> +static struct snd_soc_dai_ops sgtl5000_ops = {
>  	.hw_params = sgtl5000_pcm_hw_params,
>  	.digital_mute = sgtl5000_digital_mute,
>  	.set_fmt = sgtl5000_set_dai_fmt,
> @@ -1421,7 +1421,7 @@ static int sgtl5000_remove(struct snd_soc_codec *codec)
>  	return 0;
>  }
>  
> -struct snd_soc_codec_driver sgtl5000_driver = {
> +static struct snd_soc_codec_driver sgtl5000_driver = {
>  	.probe = sgtl5000_probe,
>  	.remove = sgtl5000_remove,
>  	.suspend = sgtl5000_suspend,

Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2011-02-28 15:08 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-02-28 14:33 [PATCH] ASoC: Staticise non-exported symbols in SGTL5000 Mark Brown
2011-02-28 15:08 ` Liam Girdwood

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).