mirror of
https://github.com/nxp-imx/linux-imx.git
synced 2025-07-07 09:55:19 +02:00
ASoC: tas2781-i2c: Get the right GPIO line
[ Upstream commit1c4b509eda
] The code is obtaining a GPIO reset using the reset GPIO name "reset-gpios", but the gpiolib is already adding the suffix "-gpios" to anything passed to this function and will be looking for "reset-gpios-gpios" which is most certainly not what the author desired. Fix it up. Fixes:ef3bcde75d
("ASoC: tas2781: Add tas2781 driver") Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Link: https://patch.msgid.link/20240807-asoc-tas-gpios-v2-2-bd0f2705d58b@linaro.org Signed-off-by: Mark Brown <broonie@kernel.org> Signed-off-by: Sasha Levin <sashal@kernel.org>
This commit is contained in:
parent
92b53ece5d
commit
7000e5f31c
|
@ -653,7 +653,7 @@ static void tasdevice_parse_dt(struct tasdevice_priv *tas_priv)
|
||||||
tas_priv->tasdevice[i].dev_addr = dev_addrs[i];
|
tas_priv->tasdevice[i].dev_addr = dev_addrs[i];
|
||||||
|
|
||||||
tas_priv->reset = devm_gpiod_get_optional(&client->dev,
|
tas_priv->reset = devm_gpiod_get_optional(&client->dev,
|
||||||
"reset-gpios", GPIOD_OUT_HIGH);
|
"reset", GPIOD_OUT_HIGH);
|
||||||
if (IS_ERR(tas_priv->reset))
|
if (IS_ERR(tas_priv->reset))
|
||||||
dev_err(tas_priv->dev, "%s Can't get reset GPIO\n",
|
dev_err(tas_priv->dev, "%s Can't get reset GPIO\n",
|
||||||
__func__);
|
__func__);
|
||||||
|
|
Loading…
Reference in New Issue
Block a user