Skip to contentSkip to conversation

ASoC: ak4104: Remove superfluous codec->control_data initialization

PATCH Applied Lars-Peter Clausen 3 participants 3 messages Mar 4, 2014 – Mar 5, 2014

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 ASoC: ak4104: Remove superfluous codec->control_data initialization

The driver uses automatic IO setup, which will also initialize the control_data field of the CODEC, no need to do it manually.

---
 sound/soc/codecs/ak4104.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/ak4104.c +0 -2
index b4819dc..10adf25 100644
@@ -174,8 +174,6 @@ static int ak4104_probe(struct snd_soc_codec *codec)
 	struct ak4104_private *ak4104 = snd_soc_codec_get_drvdata(codec);
 	int ret;
 
-	codec->control_data = ak4104->regmap;
-
 	/* set power-up and non-reset bits */
 	ret = regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1,
 				 AK4104_CONTROL1_PW | AK4104_CONTROL1_RSTN,
Signature · 1 line
1.8.0
Acked-by on v1 1/1
#1 lore raw
Quoted 4 lines · Lars-Peter Clausen

The driver uses automatic IO setup, which will also initialize the control_data field of the CODEC, no need to do it manually.

Thanks!
Daniel

Quoted 18 lines
---
 sound/soc/codecs/ak4104.c | 2 --
 1 file changed, 2 deletions(-)
sound/soc/codecs/ak4104.c +0 -2
index b4819dc..10adf25 100644
@@ -174,8 +174,6 @@ static int ak4104_probe(struct snd_soc_codec *codec)
 	struct ak4104_private *ak4104 = snd_soc_codec_get_drvdata(codec);
 	int ret;
 
-	codec->control_data = ak4104->regmap;
-
 	/* set power-up and non-reset bits */
 	ret = regmap_update_bits(ak4104->regmap, AK4104_REG_CONTROL1,
 				 AK4104_CONTROL1_PW | AK4104_CONTROL1_RSTN,
maintainer Applied
#2 lore raw
In reply to Lars-Peter Clausen
Quoted 2 lines · Lars-Peter Clausen

The driver uses automatic IO setup, which will also initialize the control_data field of the CODEC, no need to do it manually.

Applied, thanks.