mirror of
https://github.com/torvalds/linux.git
synced 2026-05-30 10:04:04 +02:00
ASoC: wsa883x: drop GPIOD_FLAGS_BIT_NONEXCLUSIVE flag from GPIO lookup
This driver is only used on Qualcomm platforms which now select HAVE_SHARED_GPIOS so this flag can be dropped. Acked-by: Mark Brown <broonie@kernel.org> Acked-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Link: https://patch.msgid.link/20251112-gpio-shared-v4-9-b51f97b1abd8@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org>
This commit is contained in:
parent
d01fbee5c0
commit
7a0a877121
|
|
@ -1572,13 +1572,10 @@ static int wsa883x_get_reset(struct device *dev, struct wsa883x_priv *wsa883x)
|
|||
if (IS_ERR(wsa883x->sd_reset))
|
||||
return dev_err_probe(dev, PTR_ERR(wsa883x->sd_reset),
|
||||
"Failed to get reset\n");
|
||||
/*
|
||||
* if sd_reset: NULL, so use the backwards compatible way for powerdown-gpios,
|
||||
* which does not handle sharing GPIO properly.
|
||||
*/
|
||||
|
||||
/* if sd_reset: NULL, so use the backwards compatible way for powerdown-gpios */
|
||||
if (!wsa883x->sd_reset) {
|
||||
wsa883x->sd_n = devm_gpiod_get_optional(dev, "powerdown",
|
||||
GPIOD_FLAGS_BIT_NONEXCLUSIVE |
|
||||
GPIOD_OUT_HIGH);
|
||||
if (IS_ERR(wsa883x->sd_n))
|
||||
return dev_err_probe(dev, PTR_ERR(wsa883x->sd_n),
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user