aboutsummaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/wm8903.c
diff options
context:
space:
mode:
authorMark Brown <broonie@opensource.wolfsonmicro.com>2011-01-31 08:41:17 -0500
committerMark Brown <broonie@opensource.wolfsonmicro.com>2011-01-31 11:07:32 -0500
commitc8059930f0aafb77d94d268dfb4fceaa15cd2ad9 (patch)
tree2a463a67c81cecb71d86bf9d11f9d631710ac377 /sound/soc/codecs/wm8903.c
parentd71bb810be602b7194d0dc336854e2f4a3d44492 (diff)
ASoC: Accept any logical value WM8903 GPIO set()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
Diffstat (limited to 'sound/soc/codecs/wm8903.c')
-rw-r--r--sound/soc/codecs/wm8903.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sound/soc/codecs/wm8903.c b/sound/soc/codecs/wm8903.c
index 9c4f2c4febc2..3d4c55f3c7b5 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)
1702 struct snd_soc_codec *codec = wm8903->codec; 1702 struct snd_soc_codec *codec = wm8903->codec;
1703 1703
1704 snd_soc_update_bits(codec, WM8903_GPIO_CONTROL_1 + offset, 1704 snd_soc_update_bits(codec, WM8903_GPIO_CONTROL_1 + offset,
1705 WM8903_GP1_LVL_MASK, value << WM8903_GP1_LVL_SHIFT); 1705 WM8903_GP1_LVL_MASK,
1706 !!value << WM8903_GP1_LVL_SHIFT);
1706} 1707}
1707 1708
1708static struct gpio_chip wm8903_template_chip = { 1709static struct gpio_chip wm8903_template_chip = {