]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ASoC: tas5086: use sleeping variants of gpiod API
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 20 Aug 2024 01:13:47 +0000 (18:13 -0700)
committerMark Brown <broonie@kernel.org>
Tue, 20 Aug 2024 11:59:17 +0000 (12:59 +0100)
commit5f83ee4b1f0c04a8b4125daab8918606df3dc035
tree4446b56a401a6c1c2f203770578187031f7d33ef
parente6c1d9068295796e34d59ef08fa80f6ff8f3530a
ASoC: tas5086: use sleeping variants of gpiod API

The driver does not access reset GPIO in atomic contexts so it is usable
with GPIOs that may sleep during access. Switch to using
gpiod_set_value_cansleep().

Also the reset GPIO is configured as output at the time it is acquired,
there is no need to use gpiod_direction_output() when executing reset
sequence.

Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
Link: https://patch.msgid.link/ZsPty8oNMQk4YTl1@google.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/tas5086.c