Skip to contentSkip to conversation

dirvers/gpio: remove redundant reset gpio suffix

PATCH In review Lizhe 2 participants 2 messages May 30, 2023 – May 31, 2023

Subsystems (3)
lore
Share & tools
lore

Lizhe

author
#0 lore raw

PATCH 1/1 dirvers/gpio: remove redundant reset gpio suffix

no need to add the suffix "gpio" or "gpios" after "reset", as they will be automatically added, see of_find_gpio().

---
 sound/soc/codecs/cs35l34.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
sound/soc/codecs/cs35l34.c +1 -1
index b3f98023e6a7..cbf0f2f4f9df 100644
@@ -1061,7 +1061,7 @@ static int cs35l34_i2c_probe(struct i2c_client *i2c_client)
 		dev_err(&i2c_client->dev, "Failed to request IRQ: %d\n", ret);
 
 	cs35l34->reset_gpio = devm_gpiod_get_optional(&i2c_client->dev,
-				"reset-gpios", GPIOD_OUT_LOW);
+				"reset", GPIOD_OUT_LOW);
 	if (IS_ERR(cs35l34->reset_gpio)) {
 		ret = PTR_ERR(cs35l34->reset_gpio);
 		goto err_regulator;
Signature · 1 line
2.34.1
#1 lore raw
Quoted 3 lines · Lizhe

no need to add the suffix "gpio" or "gpios" after "reset", as they will be automatically added, see of_find_gpio().

Patch itself looks fine, but the subject line should really be
ASoC: cs35l34: ... rather than gpio.

Thanks,
Charles