gpiolib: use proper API to pack pin configuration parameters

Instead of open coded macro use, call pinconf_to_config_packed().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
This commit is contained in:
Andy Shevchenko 2020-11-09 22:53:18 +02:00
parent 6900fad60a
commit 8b69461c2b
1 changed files with 1 additions and 1 deletions

View File

@ -2110,7 +2110,7 @@ static int gpio_set_config(struct gpio_desc *desc, enum pin_config_param mode)
break;
}
config = PIN_CONF_PACKED(mode, arg);
config = pinconf_to_config_packed(mode, arg);
return gpio_do_set_config(gc, gpio_chip_hwgpio(desc), config);
}