]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ASoC: wsa881x: Move custom workaround to gpiolib-of
authorLinus Walleij <linusw@kernel.org>
Mon, 27 Apr 2026 08:43:21 +0000 (10:43 +0200)
committerMark Brown <broonie@kernel.org>
Mon, 27 Apr 2026 22:39:15 +0000 (07:39 +0900)
commitbfa336cee3324f991e93e9e570e8b827273df97e
treee54c9c50728cd36b1d8121c15cdd6cd19c20a787
parent254f49634ee16a731174d2ae34bc50bd5f45e731
ASoC: wsa881x: Move custom workaround to gpiolib-of

The WSA881x codec driver has a local workaround for old device
trees that have the "powerdown" GPIO flagged as active high,
despite it is active low.

This quirk can be replaced by a single quirk entry in
gpiolib-of.c

Drop all polarity inversion code and drop the surplus
gpiod_direction_output() call in probe() since we now set up
the line correctly when getting the GPIO.

Also drop the inclusion of the unused <linux/gpio.h>.

Signed-off-by: Linus Walleij <linusw@kernel.org>
Link: https://patch.msgid.link/20260427-asoc-wsa881x-v2-1-9ef965f94624@kernel.org
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/gpio/gpiolib-of.c
sound/soc/codecs/wsa881x.c