Commit 91b4ea5f authored by Bartosz Golaszewski's avatar Bartosz Golaszewski

Revert "gpiolib: remove set but not used variable 'config'"

This reverts commit e5e42ad2.

This patch came on top of another patch that introduced a regression.
Revert it before addressing the culprit.
Signed-off-by: default avatarBartosz Golaszewski <bgolaszewski@baylibre.com>
Tested-by: default avatarGuenter Roeck <linux@roeck-us.net>
parent d99f8876
...@@ -3047,6 +3047,7 @@ static int gpio_do_set_config(struct gpio_chip *gc, unsigned int offset, ...@@ -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, static int gpio_set_config(struct gpio_chip *gc, unsigned int offset,
enum pin_config_param mode) enum pin_config_param mode)
{ {
unsigned long config;
unsigned arg; unsigned arg;
switch (mode) { switch (mode) {
...@@ -3060,6 +3061,7 @@ static int gpio_set_config(struct gpio_chip *gc, unsigned int offset, ...@@ -3060,6 +3061,7 @@ static int gpio_set_config(struct gpio_chip *gc, unsigned int offset,
arg = 0; arg = 0;
} }
config = PIN_CONF_PACKED(mode, arg);
return gpio_do_set_config(gc, offset, mode); return gpio_do_set_config(gc, offset, mode);
} }
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment