gpiolib: remove unnecessary argument from set_config call
authorKent Gibson <warthog618@gmail.com>
Mon, 20 Jan 2020 10:46:26 +0000 (18:46 +0800)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Mon, 10 Feb 2020 09:55:18 +0000 (10:55 +0100)
Remove unnecessary argument when setting PIN_CONFIG_BIAS_DISABLE. No
argument is expected by pinctrl, so removing it should be harmless.

Fixes: 2148ad7790ea ("gpiolib: add support for disabling line bias")
Signed-off-by: Kent Gibson <warthog618@gmail.com>
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
drivers/gpio/gpiolib.c

index 2b3e665a36e04b9f7de0c6f9805245ee15dc98ee..4d0106ceeba7bb24d3a21177356cacf6a82f69eb 100644 (file)
@@ -3051,7 +3051,6 @@ static int gpio_set_config(struct gpio_chip *gc, unsigned int offset,
        unsigned arg;
 
        switch (mode) {
-       case PIN_CONFIG_BIAS_DISABLE:
        case PIN_CONFIG_BIAS_PULL_DOWN:
        case PIN_CONFIG_BIAS_PULL_UP:
                arg = 1;