projects
/
platform
/
kernel
/
linux-starfive.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7fb0ae
)
ASoC: cs35l41: Fix GPIO2 configuration
author
David Rhodes
<drhodes@opensource.cirrus.com>
Thu, 3 Mar 2022 17:30:40 +0000
(17:30 +0000)
committer
Mark Brown
<broonie@kernel.org>
Mon, 7 Mar 2022 13:12:36 +0000
(13:12 +0000)
Fix GPIO2 polarity and direction configuration
Fixes:
fe1024d50477b
("ASoC: cs35l41: Combine adjacent register writes")
Signed-off-by: David Rhodes <drhodes@opensource.cirrus.com>
Acked-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Link:
https://lore.kernel.org/r/20220303173059.269657-2-tanureal@opensource.cirrus.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/codecs/cs35l41.c
patch
|
blob
|
history
diff --git
a/sound/soc/codecs/cs35l41.c
b/sound/soc/codecs/cs35l41.c
index
77a0176
..
90c91b0
100644
(file)
--- a/
sound/soc/codecs/cs35l41.c
+++ b/
sound/soc/codecs/cs35l41.c
@@
-1035,8
+1035,8
@@
static int cs35l41_irq_gpio_config(struct cs35l41_private *cs35l41)
regmap_update_bits(cs35l41->regmap, CS35L41_GPIO2_CTRL1,
CS35L41_GPIO_POL_MASK | CS35L41_GPIO_DIR_MASK,
- irq_gpio_cfg
1
->irq_pol_inv << CS35L41_GPIO_POL_SHIFT |
- !irq_gpio_cfg
1
->irq_out_en << CS35L41_GPIO_DIR_SHIFT);
+ irq_gpio_cfg
2
->irq_pol_inv << CS35L41_GPIO_POL_SHIFT |
+ !irq_gpio_cfg
2
->irq_out_en << CS35L41_GPIO_DIR_SHIFT);
regmap_update_bits(cs35l41->regmap, CS35L41_GPIO_PAD_CONTROL,
CS35L41_GPIO1_CTRL_MASK | CS35L41_GPIO2_CTRL_MASK,