[alsa-devel] [PATCH 10/11] ASoC: sn95031: Staticize non exported struct

Lars-Peter Clausen lars at metafoo.de
Tue May 14 22:19:56 CEST 2013


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

Cc: Vinod Koul <vinod.koul at intel.com>
Signed-off-by: Lars-Peter Clausen <lars at metafoo.de>
---
 sound/soc/codecs/sn95031.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sound/soc/codecs/sn95031.c b/sound/soc/codecs/sn95031.c
index d1ae869d..dba26e63 100644
--- a/sound/soc/codecs/sn95031.c
+++ b/sound/soc/codecs/sn95031.c
@@ -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,
-- 
1.8.0



More information about the Alsa-devel mailing list