Commit 3762442a authored by Linus Walleij's avatar Linus Walleij

Revert "gpio: omap: handle pin config bias flags"

This reverts commit 40e30d26.
I applied the patch to the wrong tree, oooups. Also there
is a new version of it. Revert it out of pinctrl and
apply to the gpio tree.
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent c4429556
...@@ -896,21 +896,12 @@ static int omap_gpio_set_config(struct gpio_chip *chip, unsigned offset, ...@@ -896,21 +896,12 @@ static int omap_gpio_set_config(struct gpio_chip *chip, unsigned offset,
unsigned long config) unsigned long config)
{ {
u32 debounce; u32 debounce;
int ret = -ENOTSUPP;
if ((pinconf_to_config_param(config) == PIN_CONFIG_BIAS_DISABLE) || if (pinconf_to_config_param(config) != PIN_CONFIG_INPUT_DEBOUNCE)
(pinconf_to_config_param(config) == PIN_CONFIG_BIAS_PULL_UP) || return -ENOTSUPP;
(pinconf_to_config_param(config) == PIN_CONFIG_BIAS_PULL_DOWN))
{
ret = gpiochip_generic_config(chip, offset, config);
}
else if (pinconf_to_config_param(config) == PIN_CONFIG_INPUT_DEBOUNCE)
{
debounce = pinconf_to_config_argument(config);
ret = omap_gpio_debounce(chip, offset, debounce);
}
return ret; debounce = pinconf_to_config_argument(config);
return omap_gpio_debounce(chip, offset, debounce);
} }
static void omap_gpio_set(struct gpio_chip *chip, unsigned offset, int value) static void omap_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment