tree: git://git.kernel.org/pub/scm/linux/kernel/git/broonie/sound.git topic/rt5645 head: a4e3c5fa955ce0934774f3f3684377dbf2c20eca commit: a4e3c5fa955ce0934774f3f3684377dbf2c20eca [7/7] ASoC: rt5645: Simplify rt5645_enable_push_button_irq config: i386-randconfig-x009-201528 (attached as .config) reproduce: git checkout a4e3c5fa955ce0934774f3f3684377dbf2c20eca # save the attached .config to linux build tree make ARCH=i386
All warnings (new ones prefixed by >>):
sound/soc/codecs/rt5645.c: In function 'rt5645_enable_push_button_irq':
sound/soc/codecs/rt5645.c:2766:22: warning: unused variable 'rt5645' [-Wunused-variable]
struct rt5645_priv *rt5645 = snd_soc_codec_get_drvdata(codec); ^
vim +/rt5645 +2766 sound/soc/codecs/rt5645.c
d12d6c4e John Lin 2015-05-12 2750 regmap_write(rt5645->regmap, RT5645_DEPOP_M2, 0x1140); d12d6c4e John Lin 2015-05-12 2751 regmap_write(rt5645->regmap, RT5645_DEPOP_M1, 0x0000); d12d6c4e John Lin 2015-05-12 2752 regmap_write(rt5645->regmap, RT5645_GEN_CTRL2, 0x4020); d12d6c4e John Lin 2015-05-12 2753 regmap_write(rt5645->regmap, RT5645_PWR_ANLG2, 0x0006); d12d6c4e John Lin 2015-05-12 2754 regmap_write(rt5645->regmap, RT5645_PWR_DIG2, 0x0000); d12d6c4e John Lin 2015-05-12 2755 msleep(350); d12d6c4e John Lin 2015-05-12 2756 d12d6c4e John Lin 2015-05-12 2757 regcache_cache_bypass(rt5645->regmap, false); d12d6c4e John Lin 2015-05-12 2758 d12d6c4e John Lin 2015-05-12 2759 return ret; d12d6c4e John Lin 2015-05-12 2760 } d12d6c4e John Lin 2015-05-12 2761 6e747d53 Bard Liao 2015-04-28 2762 static void rt5645_enable_push_button_irq(struct snd_soc_codec *codec, 6e747d53 Bard Liao 2015-04-28 2763 bool enable) f3fa1bbd Oder Chiou 2014-09-19 2764 { e2ada818 Lars-Peter Clausen 2015-07-06 2765 struct snd_soc_dapm_context *dapm = snd_soc_codec_get_dapm(codec); f3fa1bbd Oder Chiou 2014-09-19 @2766 struct rt5645_priv *rt5645 = snd_soc_codec_get_drvdata(codec); f3fa1bbd Oder Chiou 2014-09-19 2767 6e747d53 Bard Liao 2015-04-28 2768 if (enable) { a4e3c5fa Nicolas Boichat 2015-07-16 2769 snd_soc_dapm_force_enable_pin(dapm, "ADC L power"); a4e3c5fa Nicolas Boichat 2015-07-16 2770 snd_soc_dapm_force_enable_pin(dapm, "ADC R power"); a4e3c5fa Nicolas Boichat 2015-07-16 2771 snd_soc_dapm_sync(dapm); 22f5d9f8 Nicolas Boichat 2015-06-10 2772 6e747d53 Bard Liao 2015-04-28 2773 snd_soc_update_bits(codec, 6e747d53 Bard Liao 2015-04-28 2774 RT5645_INT_IRQ_ST, 0x8, 0x8);
:::::: The code at line 2766 was first introduced by commit :::::: f3fa1bbd836a7d6efb2abd506ed8e24096f39062 ASoC: rt5645: Add headset detect function
:::::: TO: Oder Chiou oder_chiou@realtek.com :::::: CC: Mark Brown broonie@kernel.org
--- 0-DAY kernel test infrastructure Open Source Technology Center https://lists.01.org/pipermail/kbuild-all Intel Corporation