diff options
author | Lars-Peter Clausen <lars@metafoo.de> | 2013-06-19 17:34:03 (GMT) |
---|---|---|
committer | Mark Brown <broonie@linaro.org> | 2013-06-19 18:47:57 (GMT) |
commit | f0ddb219c9f92d0c43582a000e1ddc0a4ee43222 (patch) | |
tree | a71e634e5cdb7504926e0d4b157906977cd59727 /sound | |
parent | f9eeae9f04cafe2619be7ce17952dc502baeac39 (diff) | |
download | linux-f0ddb219c9f92d0c43582a000e1ddc0a4ee43222.tar.xz |
ASoC: 88pm860x: Use SND_SOC_DAPM_PGA_E() instead of open-coding it
Signed-off-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Mark Brown <broonie@linaro.org>
Diffstat (limited to 'sound')
-rw-r--r-- | sound/soc/codecs/88pm860x-codec.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/sound/soc/codecs/88pm860x-codec.c b/sound/soc/codecs/88pm860x-codec.c index 60159c0..e2bd3dd 100644 --- a/sound/soc/codecs/88pm860x-codec.c +++ b/sound/soc/codecs/88pm860x-codec.c @@ -120,10 +120,8 @@ * before DAC & PGA in DAPM power-off sequence. */ #define PM860X_DAPM_OUTPUT(wname, wevent) \ -{ .id = snd_soc_dapm_pga, .name = wname, .reg = SND_SOC_NOPM, \ - .shift = 0, .invert = 0, .kcontrol_news = NULL, \ - .num_kcontrols = 0, .event = wevent, \ - .event_flags = SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD, } + SND_SOC_DAPM_PGA_E(wname, SND_SOC_NOPM, 0, 0, NULL, 0, wevent, \ + SND_SOC_DAPM_POST_PMU | SND_SOC_DAPM_POST_PMD) struct pm860x_det { struct snd_soc_jack *hp_jack; |