alsa-devel.alsa-project.org archive mirror
 help / color / mirror / Atom feed
* [PATCH for-next v2 1/2] ASoC: tas2770: Fix reset gpio property name
@ 2020-07-10 14:50 Dan Murphy
  2020-07-10 14:50 ` [PATCH for-next v2 2/2] dt-bindings: tas2770: Convert tas2770 binding to yaml Dan Murphy
  2020-07-22  0:56 ` [PATCH for-next v2 1/2] ASoC: tas2770: Fix reset gpio property name Mark Brown
  0 siblings, 2 replies; 3+ messages in thread
From: Dan Murphy @ 2020-07-10 14:50 UTC (permalink / raw)
  To: lgirdwood, broonie, perex, tiwai; +Cc: alsa-devel, linux-kernel, Dan Murphy

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>
---
 sound/soc/codecs/tas2770.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/sound/soc/codecs/tas2770.c b/sound/soc/codecs/tas2770.c
index 54c8135fe43c..cf071121c839 100644
--- a/sound/soc/codecs/tas2770.c
+++ b/sound/soc/codecs/tas2770.c
@@ -758,8 +758,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) {
-- 
2.27.0


^ permalink raw reply related	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2020-07-22  0:57 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-07-10 14:50 [PATCH for-next v2 1/2] ASoC: tas2770: Fix reset gpio property name Dan Murphy
2020-07-10 14:50 ` [PATCH for-next v2 2/2] dt-bindings: tas2770: Convert tas2770 binding to yaml Dan Murphy
2020-07-22  0:56 ` [PATCH for-next v2 1/2] ASoC: tas2770: Fix reset gpio property name Mark Brown

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).