Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit d71bb810 authored by Mark Brown's avatar Mark Brown
Browse files

ASoC: Accept any logical value for WM8962 GPIO set()

parent c800587f
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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,