From: Mark Brown Date: Mon, 31 Jan 2011 13:41:17 +0000 (+0000) Subject: ASoC: Accept any logical value WM8903 GPIO set() X-Git-Tag: v3.0~832^2~32^2~136 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=c8059930f0aafb77d94d268dfb4fceaa15cd2ad9;p=platform%2Fkernel%2Flinux-amlogic.git ASoC: Accept any logical value WM8903 GPIO set() Signed-off-by: Mark Brown Acked-by: Liam Girdwood --- diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c index 9c4f2c4..3d4c55f 100644 --- a/sound/soc/codecs/wm8903.c +++ b/sound/soc/codecs/wm8903.c @@ -1702,7 +1702,8 @@ static void wm8903_gpio_set(struct gpio_chip *chip, unsigned offset, int value) struct snd_soc_codec *codec = wm8903->codec; snd_soc_update_bits(codec, WM8903_GPIO_CONTROL_1 + offset, - WM8903_GP1_LVL_MASK, value << WM8903_GP1_LVL_SHIFT); + WM8903_GP1_LVL_MASK, + !!value << WM8903_GP1_LVL_SHIFT); } static struct gpio_chip wm8903_template_chip = {