Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

ASoC: ak4458: remove "reset-gpios" property handler

commit c721f189e89c0 ("reset: Instantiate reset GPIO controller for
shared reset-gpios") check if there is no "resets" property
will fallback to "reset-gpios".

So don't need to handle "reset-gpios" separately in the driver,
the "reset-gpios" handler is duplicated with "resets" control handler,
remove it.

Signed-off-by: Shengjiu Wang <shengjiu.wang@nxp.com>
Link: https://patch.msgid.link/1720009575-11677-1-git-send-email-shengjiu.wang@nxp.com
Signed-off-by: Mark Brown <broonie@kernel.org>

authored by

Shengjiu Wang and committed by
Mark Brown
1e0dff74 6558e873

+1 -10
+1 -10
sound/soc/codecs/ak4458.c
··· 45 45 const struct ak4458_drvdata *drvdata; 46 46 struct device *dev; 47 47 struct regmap *regmap; 48 - struct gpio_desc *reset_gpiod; 49 48 struct reset_control *reset; 50 49 struct gpio_desc *mute_gpiod; 51 50 int digfil; /* SSLOW, SD, SLOW bits */ ··· 630 631 631 632 static void ak4458_reset(struct ak4458_priv *ak4458, bool active) 632 633 { 633 - if (ak4458->reset_gpiod) { 634 - gpiod_set_value_cansleep(ak4458->reset_gpiod, active); 635 - usleep_range(1000, 2000); 636 - } else if (!IS_ERR_OR_NULL(ak4458->reset)) { 634 + if (!IS_ERR_OR_NULL(ak4458->reset)) { 637 635 if (active) 638 636 reset_control_assert(ak4458->reset); 639 637 else ··· 753 757 ak4458->reset = devm_reset_control_get_optional_shared(ak4458->dev, NULL); 754 758 if (IS_ERR(ak4458->reset)) 755 759 return PTR_ERR(ak4458->reset); 756 - 757 - ak4458->reset_gpiod = devm_gpiod_get_optional(ak4458->dev, "reset", 758 - GPIOD_OUT_LOW); 759 - if (IS_ERR(ak4458->reset_gpiod)) 760 - return PTR_ERR(ak4458->reset_gpiod); 761 760 762 761 ak4458->mute_gpiod = devm_gpiod_get_optional(ak4458->dev, "mute", 763 762 GPIOD_OUT_LOW);