]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commitdiff
ASoC: rt5645: Remove unused rt5645 variable
authorNicolas Boichat <drinkcat@chromium.org>
Fri, 17 Jul 2015 02:58:40 +0000 (10:58 +0800)
committerMark Brown <broonie@kernel.org>
Fri, 17 Jul 2015 11:16:00 +0000 (12:16 +0100)
"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.

Signed-off-by: Nicolas Boichat <drinkcat@chromium.org>
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/rt5645.c

index 11a2bfc4a05991cf01405d47c50692b67d76a9cd..c16adf4bac0db4e5c73ffa47f0256bd0e2434ccf 100644 (file)
@@ -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");