Skip to content

Commit 681ccdc

Browse files
manabianLinus Walleij
authored andcommitted
pinctrl: lpc18xx: fix schmitt trigger setup
The param_val variable is what determines if schmitt trigger is enabled on a pin or not. A typo here mean that schmitt trigger was always enabled for standard and i2c pins. Signed-off-by: Joachim Eastwood <manabian@gmail.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 9571b25 commit 681ccdc

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

‎drivers/pinctrl/pinctrl-lpc18xx.c‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -823,7 +823,7 @@ static int lpc18xx_pconf_set_i2c0(struct pinctrl_dev *pctldev,
823823
break;
824824

825825
case PIN_CONFIG_INPUT_SCHMITT_ENABLE:
826-
if (param)
826+
if (param_val)
827827
*reg &= ~(LPC18XX_SCU_I2C0_ZIF << shift);
828828
else
829829
*reg |= (LPC18XX_SCU_I2C0_ZIF << shift);
@@ -876,7 +876,7 @@ static int lpc18xx_pconf_set_pin(struct pinctrl_dev *pctldev,
876876
break;
877877

878878
case PIN_CONFIG_INPUT_SCHMITT_ENABLE:
879-
if (param)
879+
if (param_val)
880880
*reg &= ~LPC18XX_SCU_PIN_ZIF;
881881
else
882882
*reg |= LPC18XX_SCU_PIN_ZIF;

0 commit comments

Comments
 (0)