Skip to content

Commit

Permalink
Revert "gpiolib: remove set but not used variable 'config'"
Browse files Browse the repository at this point in the history
This reverts commit e5e42ad.

This patch came on top of another patch that introduced a regression.
Revert it before addressing the culprit.

Signed-off-by: Bartosz Golaszewski <[email protected]>
Tested-by: Guenter Roeck <[email protected]>
  • Loading branch information
brgl committed Feb 10, 2020
1 parent d99f887 commit 91b4ea5
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -3047,6 +3047,7 @@ static int gpio_do_set_config(struct gpio_chip *gc, unsigned int offset,
static int gpio_set_config(struct gpio_chip *gc, unsigned int offset,
enum pin_config_param mode)
{
unsigned long config;
unsigned arg;

switch (mode) {
Expand All @@ -3060,6 +3061,7 @@ static int gpio_set_config(struct gpio_chip *gc, unsigned int offset,
arg = 0;
}

config = PIN_CONF_PACKED(mode, arg);
return gpio_do_set_config(gc, offset, mode);
}

Expand Down

0 comments on commit 91b4ea5

Please sign in to comment.