ASoC: Tegra: Harmony: Remove redundant !!
authorStephen Warren <swarren@nvidia.com>
Mon, 31 Jan 2011 18:00:17 +0000 (11:00 -0700)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Tue, 1 Feb 2011 14:12:31 +0000 (14:12 +0000)
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>
sound/soc/tegra/harmony.c

index d1faa63af0344ba0ebe0daef659ae35ba75432f3..11e2cb8256649b6db08f12e953f33d6dff7f8f95 100644 (file)
@@ -132,7 +132,7 @@ static int harmony_event_int_spk(struct snd_soc_dapm_widget *w,
        struct harmony_audio_platform_data *pdata = harmony->pdata;
 
        gpio_set_value_cansleep(pdata->gpio_spkr_en,
-                               !!SND_SOC_DAPM_EVENT_ON(event));
+                               SND_SOC_DAPM_EVENT_ON(event));
 
        return 0;
 }