Skip to contentSkip to conversation

ASoC: rt5645: Remove unused rt5645 variable

PATCH New Nicolas Boichat 1 participant 1 message Jul 17, 2015

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

PATCH 1/1 ASoC: rt5645: Remove unused rt5645 variable

"ASoC: rt5645: Simplify rt5645_enable_push_button_irq" removes the test that accessed rt5645->pdata.jd_mode (that test is now done in rt5645_jack_detect only), so we do not need that variable anymore.

---

Applies on top of topic/rt5645. Sorry for not catching this earlier.

 sound/soc/codecs/rt5645.c | 1 -
 1 file changed, 1 deletion(-)
sound/soc/codecs/rt5645.c +0 -1
index 2cedf0d..c959ee0 100644
@@ -2763,7 +2763,6 @@ static void rt5645_enable_push_button_irq(struct snd_soc_codec *codec,
 	bool enable)
 {
 	struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec);
-	struct rt5645_priv *rt5645 = snd_soc_codec_get_drvdata(codec);
 
 	if (enable) {
 		snd_soc_dapm_force_enable_pin(dapm, "ADC L power");
Signature · 1 line
2.4.3.573.g4eafbef