summaryrefslogtreecommitdiffstats
path: root/sound/soc/codecs/tas2770.c
diff options
context:
space:
mode:
authorDan Murphy <dmurphy@ti.com>2020-07-20 20:12:02 +0200
committerMark Brown <broonie@kernel.org>2020-07-21 22:57:40 +0200
commit58b868f51d6e38146e44cb09fcd92b5fc35d83bc (patch)
treed092551295a75ff5e4f1dab326254268224782f5 /sound/soc/codecs/tas2770.c
parentASoC: sgtl5000: Convert to json-schema (diff)
downloadlinux-58b868f51d6e38146e44cb09fcd92b5fc35d83bc.tar.xz
linux-58b868f51d6e38146e44cb09fcd92b5fc35d83bc.zip
ASoC: tas2770: Fix reset gpio property name
Fix the reset property name when allocating the GPIO descriptor. The gpiod_get_optional appends either the -gpio or -gpios suffix to the name. Fixes: 1a476abc723e6 ("tas2770: add tas2770 smart PA kernel driver") Signed-off-by: Dan Murphy <dmurphy@ti.com> Link: https://lore.kernel.org/r/20200720181202.31000-2-dmurphy@ti.com Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'sound/soc/codecs/tas2770.c')
-rw-r--r--sound/soc/codecs/tas2770.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sound/soc/codecs/tas2770.c b/sound/soc/codecs/tas2770.c
index 4538b2d0216f..1eb9b77439eb 100644
--- a/sound/soc/codecs/tas2770.c
+++ b/sound/soc/codecs/tas2770.c
@@ -759,8 +759,7 @@ static int tas2770_i2c_probe(struct i2c_client *client,
}
}
- tas2770->reset_gpio = devm_gpiod_get_optional(tas2770->dev,
- "reset-gpio",
+ tas2770->reset_gpio = devm_gpiod_get_optional(tas2770->dev, "reset",
GPIOD_OUT_HIGH);
if (IS_ERR(tas2770->reset_gpio)) {
if (PTR_ERR(tas2770->reset_gpio) == -EPROBE_DEFER) {