]> git.baikalelectronics.ru Git - kernel.git/commit
ASoC: Fix return value of wm8903_gpio_direction_in() and wm8903_gpio_direction_out()
authorAxel Lin <axel.lin@gmail.com>
Sat, 31 Dec 2011 03:01:41 +0000 (11:01 +0800)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Mon, 2 Jan 2012 13:08:39 +0000 (13:08 +0000)
commitf05bd63a9cc82309c5791a83dfbfd3a63a88dc62
treefac1e175101fe097bd5c2f2ba98bbb62b44184ce
parent43bf8cf0e089f873352935d0557ae3c471ab0063
ASoC: Fix return value of wm8903_gpio_direction_in() and wm8903_gpio_direction_out()

We can't just pass back the return value of snd_soc_update_bits() as it
will be 1 if a bit changed rather than zero.

Signed-off-by: Axel Lin <axel.lin@gmail.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
sound/soc/codecs/wm8903.c