Skip to content

Commit 8131b73

Browse files
warthog618brgl
authored andcommitted
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: 2148ad7 ("gpiolib: add support for disabling line bias") Signed-off-by: Kent Gibson <[email protected]> Signed-off-by: Bartosz Golaszewski <[email protected]>
1 parent 4d0cabb commit 8131b73

File tree

1 file changed

+0
-1
lines changed

1 file changed

+0
-1
lines changed

drivers/gpio/gpiolib.c

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3051,7 +3051,6 @@ static int gpio_set_config(struct gpio_chip *gc, unsigned int offset,
30513051
unsigned arg;
30523052

30533053
switch (mode) {
3054-
case PIN_CONFIG_BIAS_DISABLE:
30553054
case PIN_CONFIG_BIAS_PULL_DOWN:
30563055
case PIN_CONFIG_BIAS_PULL_UP:
30573056
arg = 1;

0 commit comments

Comments
 (0)