projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0bad45c
)
MLK-17743 ASoC: codecs: ak4458: Fix mute gpio mixed with pdn gpio
author
Cosmin-Gabriel Samoila
<cosmin.samoila@nxp.com>
Fri, 9 Mar 2018 09:49:58 +0000
(11:49 +0200)
committer
Nitin Garg
<nitin.garg@nxp.com>
Tue, 20 Mar 2018 19:56:35 +0000
(14:56 -0500)
Fix bug when PDN gpio is requested instead of mute gpio.
Signed-off-by: Cosmin-Gabriel Samoila <cosmin.samoila@nxp.com>
Reviewed-by: Daniel Baluta <daniel.baluta@nxp.com>
sound/soc/codecs/ak4458.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/ak4458.c
b/sound/soc/codecs/ak4458.c
index
ef601c0
..
cb51b12
100644
(file)
--- a/
sound/soc/codecs/ak4458.c
+++ b/
sound/soc/codecs/ak4458.c
@@
-1131,7
+1131,7
@@
int ak4458_probe(struct device *dev, struct regmap *regmap)
ak4458->mute_gpio = of_get_named_gpio(np, "ak4458,mute_gpio", 0);
if (gpio_is_valid(ak4458->mute_gpio)) {
- ret = devm_gpio_request_one(dev, ak4458->
pdn
_gpio,
+ ret = devm_gpio_request_one(dev, ak4458->
mute
_gpio,
GPIOF_OUT_INIT_LOW, "ak4458,mute");
if (ret) {
dev_err(dev, "unable to get mute gpio\n");