mirror of
https://github.com/torvalds/linux.git
synced 2026-07-27 17:47:41 +02:00
pinctrl: cs42l43: Fix polarity on debounce
The debounce bit sets a bypass on the debounce rather than enabling it,
as such the current polarity of the debounce is set incorrectly. Invert
the polarity to correct this.
Fixes: d5282a5392 ("pinctrl: cs42l43: Add support for the cs42l43")
Signed-off-by: Charles Keepax <ckeepax@opensource.cirrus.com>
Reviewed-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
Signed-off-by: Linus Walleij <linusw@kernel.org>
This commit is contained in:
parent
1cb73b83ab
commit
9da52ee80a
|
|
@ -343,7 +343,7 @@ static int cs42l43_pin_set_db(struct cs42l43_pin *priv, unsigned int pin,
|
|||
|
||||
return regmap_update_bits(priv->regmap, CS42L43_GPIO_CTRL2,
|
||||
CS42L43_GPIO1_DEGLITCH_BYP_MASK << pin,
|
||||
!!us << pin);
|
||||
!us << pin);
|
||||
}
|
||||
|
||||
static int cs42l43_pin_config_get(struct pinctrl_dev *pctldev,
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user