mirror of
https://github.com/torvalds/linux.git
synced 2024-11-04 11:04:38 +00:00
pinctrl: qcom-spmi-gpio: Fix output type configuration
GPIO output type configuration was incorrectly overwritten by strength value. Fix this. Signed-off-by: Ivan T. Ivanov <ivan.ivanov@linaro.org> Acked-by: Bjorn Andersson <bjorn.andersson@sonymobile.com> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
This commit is contained in:
parent
a4811622fe
commit
982df6aec0
@ -417,7 +417,7 @@ static int pmic_gpio_config_set(struct pinctrl_dev *pctldev, unsigned int pin,
|
||||
return ret;
|
||||
|
||||
val = pad->buffer_type << PMIC_GPIO_REG_OUT_TYPE_SHIFT;
|
||||
val = pad->strength << PMIC_GPIO_REG_OUT_STRENGTH_SHIFT;
|
||||
val |= pad->strength << PMIC_GPIO_REG_OUT_STRENGTH_SHIFT;
|
||||
|
||||
ret = pmic_gpio_write(state, pad, PMIC_GPIO_REG_DIG_OUT_CTL, val);
|
||||
if (ret < 0)
|
||||
|
Loading…
Reference in New Issue
Block a user