Skip to contentSkip to conversation

ASoC: Remove unused fields in struct mfld_mc_private

PATCH Applied Axel Lin 2 participants 4 messages Sep 27, 2011

Subsystems (2)
lore
Share & tools
lore

Axel Lin

author
#0 lore raw

PATCH 1/2 ASoC: Remove unused fields in struct mfld_mc_private

Both *socdev and *codec of struct mfld_mc_private are not being used in this driver, remove it.

---
 sound/soc/mid-x86/mfld_machine.c |    2 --
 1 files changed, 0 insertions(+), 2 deletions(-)
sound/soc/mid-x86/mfld_machine.c +0 -2
index 429aa1b..1d818dc 100644
@@ -54,9 +54,7 @@ static unsigned int	hs_switch;
 static unsigned int	lo_dac;
 
 struct mfld_mc_private {
-	struct platform_device *socdev;
 	void __iomem *int_base;
-	struct snd_soc_codec *codec;
 	u8 interrupt_status;
 };
 
Signature · 1 line
1.7.4.1
author
#1 lore raw

PATCH 2/2 ASoC: Staticise sst_platform_dai

It is not used outside this driver so no need to make the symbol global.

---
 sound/soc/mid-x86/sst_platform.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/mid-x86/sst_platform.c +1 -1
index 9925d20..7df8c58 100644
@@ -63,7 +63,7 @@ static struct snd_pcm_hardware sst_platform_pcm_hw = {
 };
 
 /* MFLD - MSIC */
-struct snd_soc_dai_driver sst_platform_dai[] = {
+static struct snd_soc_dai_driver sst_platform_dai[] = {
 {
 	.name = "Headset-cpu-dai",
 	.id = 0,
Signature · 1 line
1.7.4.1
Applied
#2 lore raw

Re: [PATCH 2/2] ASoC: Staticise sst_platform_dai

Quoted 2 lines · Axel Lin

It is not used outside this driver so no need to make the symbol global.

Applied, thanks.

Applied
#3 lore raw
In reply to Axel Lin
Quoted 2 lines · Axel Lin

Both *socdev and *codec of struct mfld_mc_private are not being used in this driver, remove it.

Applied, thanks.