aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/tegra/harmony.c
diff options
context:
space:
mode:
authorStephen Warren <swarren@nvidia.com>2011-01-31 13:00:17 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-02-01 09:12:31 -0500
commitf9eabc3deedccf545bd73fd72b3af2759d44f6f3 (patch)
tree43eca4bb1cae91f86dc4b57c6e8de0ae932e043f /sound/soc/tegra/harmony.c
parentc8059930f0aafb77d94d268dfb4fceaa15cd2ad9 (diff)
ASoC: Tegra: Harmony: Remove redundant !!
gpio_set_value* should accept logic values not just 0 or 1. The WM8903 GPIO driver has been fixed to work this way, so remove the redundant !! previously required when it didn't accept values >1. Signed-off-by: Stephen Warren <swarren@nvidia.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk> Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
Diffstat (limited to 'sound/soc/tegra/harmony.c')
-rw-r--r--sound/soc/tegra/harmony.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/soc/tegra/harmony.c b/sound/soc/tegra/harmony.c
index d1faa63af034..11e2cb825664 100644
--- a/sound/soc/tegra/harmony.c
+++ b/sound/soc/tegra/harmony.c
@@ -132,7 +132,7 @@ static int harmony_event_int_spk(struct snd_soc_dapm_widget *w,
132 struct harmony_audio_platform_data *pdata = harmony->pdata; 132 struct harmony_audio_platform_data *pdata = harmony->pdata;
133 133
134 gpio_set_value_cansleep(pdata->gpio_spkr_en, 134 gpio_set_value_cansleep(pdata->gpio_spkr_en,
135 !!SND_SOC_DAPM_EVENT_ON(event)); 135 SND_SOC_DAPM_EVENT_ON(event));
136 136
137 return 0; 137 return 0;
138} 138}