[alsa-devel] [PATCH] ASoC: ak4642: cleanup struct ak4642_priv

Kuninori Morimoto kuninori.morimoto.gx at renesas.com
Tue Nov 20 10:34:46 CET 2012


This patch cleaned struct ak4642_priv which had
meaningless variable.
Current struct ak4642_priv doesn't have member variable,
but keep it.

Signed-off-by: Kuninori Morimoto <kuninori.morimoto.gx at renesas.com>
---
 sound/soc/codecs/ak4642.c |    6 +-----
 1 file changed, 1 insertion(+), 5 deletions(-)

diff --git a/sound/soc/codecs/ak4642.c b/sound/soc/codecs/ak4642.c
index b3e24f2..3155b67 100644
--- a/sound/soc/codecs/ak4642.c
+++ b/sound/soc/codecs/ak4642.c
@@ -196,8 +196,6 @@ static const struct snd_soc_dapm_route ak4642_intercon[] = {
 
 /* codec private data */
 struct ak4642_priv {
-	unsigned int sysclk;
-	enum snd_soc_control_type control_type;
 };
 
 /*
@@ -468,10 +466,9 @@ static int ak4642_resume(struct snd_soc_codec *codec)
 
 static int ak4642_probe(struct snd_soc_codec *codec)
 {
-	struct ak4642_priv *ak4642 = snd_soc_codec_get_drvdata(codec);
 	int ret;
 
-	ret = snd_soc_codec_set_cache_io(codec, 8, 8, ak4642->control_type);
+	ret = snd_soc_codec_set_cache_io(codec, 8, 8, SND_SOC_I2C);
 	if (ret < 0) {
 		dev_err(codec->dev, "Failed to set cache I/O: %d\n", ret);
 		return ret;
@@ -532,7 +529,6 @@ static __devinit int ak4642_i2c_probe(struct i2c_client *i2c,
 		return -ENOMEM;
 
 	i2c_set_clientdata(i2c, ak4642);
-	ak4642->control_type = SND_SOC_I2C;
 
 	ret =  snd_soc_register_codec(&i2c->dev,
 				(struct snd_soc_codec_driver *)id->driver_data,
-- 
1.7.9.5



More information about the Alsa-devel mailing list