ASoC: Accept any logical value for WM8962 GPIO set()
Subsystems (3)
PATCH 1/1 ASoC: Accept any logical value for WM8962 GPIO set()
Signed-off-by Mark Brown <[email protected]>
--- sound/soc/codecs/wm8962.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)
sound/soc/codecs/wm8962.c +1 -1
@@ -3635,7 +3635,7 @@ static void wm8962_gpio_set(struct gpio_chip *chip, unsigned offset, int value)struct snd_soc_codec *codec = wm8962->codec;snd_soc_update_bits (codec,WM8962_GPIO_BASE + offset, -WM8962_GP2_LVL , value <<WM8962_GP2_LVL_SHIFT ); +WM8962_GP2_LVL , !!value <<WM8962_GP2_LVL_SHIFT ); } static int wm8962_gpio_direction_out(struct gpio_chip *chip,
Signature · 1 line
1.7.2.3
Quoted 10 lines · Mark Brown
Signed-off-by Mark Brown <[email protected]>--- sound/soc/codecs/wm8962.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)sound/soc/codecs/wm8962.c +0
-0
sound/soc/codecs/wm8962.c static void wm8962_gpio_set(struct gpio_chip *chip, unsigned offset, int value) · line 3641
Quoted 8 lines
sound/soc/codecs/wm8962.c +1
-1@@ -3635,7 +3635,7 @@ static void wm8962_gpio_set(struct gpio_chip *chip, unsigned offset, int value)struct snd_soc_codec *codec = wm8962->codec;snd_soc_update_bits (codec,WM8962_GPIO_BASE + offset, -WM8962_GP2_LVL , value <<WM8962_GP2_LVL_SHIFT ); +WM8962_GP2_LVL , !!value <<WM8962_GP2_LVL_SHIFT ); } static int wm8962_gpio_direction_out(struct gpio_chip *chip,
Acked-by Liam Girdwood <[email protected]>
Signature · 3 lines
Freelance Developer, SlimLogic Ltd ASoC and Voltage Regulator Maintainer. http://www.slimlogic.co.uk