mirror of
https://github.com/torvalds/linux.git
synced 2024-11-15 00:21:59 +00:00
ASoC: Accept any logical value for WM8962 GPIO set()
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com> Acked-by: Liam Girdwood <lrg@slimlogic.co.uk>
This commit is contained in:
parent
c800587f65
commit
d71bb810be
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user