summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2020-01-20 18:46:26 +0800
committerBartosz Golaszewski <bgolaszewski@baylibre.com>2020-02-10 10:55:18 +0100
commit8131b73b22c25e57e926874bb284f61cc3f8ac5e (patch)
tree18cf43504b8612a0b35d5472ee8e7d5dc694df81
parent4d0cabbb8b6a6cb010c19e8a3da2da5e0aaf5ef0 (diff)
downloadlinux-stable-8131b73b22c25e57e926874bb284f61cc3f8ac5e.tar.gz
linux-stable-8131b73b22c25e57e926874bb284f61cc3f8ac5e.tar.bz2
linux-stable-8131b73b22c25e57e926874bb284f61cc3f8ac5e.zip
gpiolib: remove unnecessary argument from set_config call
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>
-rw-r--r--drivers/gpio/gpiolib.c1
1 files changed, 0 insertions, 1 deletions
diff --git a/drivers/gpio/gpiolib.c b/drivers/gpio/gpiolib.c
index 2b3e665a36e0..4d0106ceeba7 100644
--- a/drivers/gpio/gpiolib.c
+++ b/drivers/gpio/gpiolib.c
@@ -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;