Skip to contentSkip to conversation

ASoC: Staticise CS4270 DAI

PATCH In review Mark Brown 3 participants 5 messages Oct 6, 2010 – Oct 10, 2010

Subsystems (4)
lore
Share & tools
lore

Mark Brown

author
#0 lore raw

PATCH 1/2 ASoC: Staticise CS4270 DAI

It's not needed with multi-component.

---
 sound/soc/codecs/cs4270.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/cs4270.c +1 -1
index 5fd8e0d..6d4bdc6 100644
@@ -518,7 +518,7 @@ static struct snd_soc_dai_ops cs4270_dai_ops = {
 	.digital_mute	= cs4270_dai_mute,
 };
 
-struct snd_soc_dai_driver cs4270_dai = {
+static struct snd_soc_dai_driver cs4270_dai = {
 	.name = "cs4270-hifi",
 	.playback = {
 		.stream_name = "Playback",
Signature · 1 line
1.7.1
author
#1 lore raw

PATCH 2/2 ASoC: Staticise AD1980 DAI

It doesn't need to be exported with multi-component.

---
 sound/soc/codecs/ad1980.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/ad1980.c +1 -1
index d36bd1c..410ccd5 100644
@@ -133,7 +133,7 @@ static int ac97_write(struct snd_soc_codec *codec, unsigned int reg,
 	return 0;
 }
 
-struct snd_soc_dai_driver ad1980_dai = {
+static struct snd_soc_dai_driver ad1980_dai = {
 	.name = "ad1980-hifi",
 	.ac97_control = 1,
 	.playback = {
Signature · 1 line
1.7.1
Acked-by on v1 1/2
#2 lore raw
In reply to Mark Brown
Quoted 12 lines · Mark Brown

It's not needed with multi-component.

---
 sound/soc/codecs/cs4270.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/cs4270.c +0 -0
index 5fd8e0d..6d4bdc6 100644

sound/soc/codecs/cs4270.c static struct snd_soc_dai_ops cs4270_dai_ops = { · line 524

Quoted 8 lines
sound/soc/codecs/cs4270.c +1 -1
@@ -518,7 +518,7 @@ static struct snd_soc_dai_ops cs4270_dai_ops = {
 	.digital_mute	= cs4270_dai_mute,
 };
 
-struct snd_soc_dai_driver cs4270_dai = {
+static struct snd_soc_dai_driver cs4270_dai = {
 	.name = "cs4270-hifi",
 	.playback = {
 		.stream_name = "Playback",

Both

Signature · 3 lines
Freelance Developer, SlimLogic Ltd
ASoC and Voltage Regulator Maintainer.
http://www.slimlogic.co.uk