Skip to content

Commit 91b4ea5

Browse files
committed
Revert "gpiolib: remove set but not used variable 'config'"
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]>
1 parent d99f887 commit 91b4ea5

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/gpio/gpiolib.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3047,6 +3047,7 @@ static int gpio_do_set_config(struct gpio_chip *gc, unsigned int offset,
30473047
static int gpio_set_config(struct gpio_chip *gc, unsigned int offset,
30483048
enum pin_config_param mode)
30493049
{
3050+
unsigned long config;
30503051
unsigned arg;
30513052

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

3064+
config = PIN_CONF_PACKED(mode, arg);
30633065
return gpio_do_set_config(gc, offset, mode);
30643066
}
30653067

0 commit comments

Comments
 (0)