Commit 8b69461c authored by Andy Shevchenko's avatar Andy Shevchenko

gpiolib: use proper API to pack pin configuration parameters

Instead of open coded macro use, call pinconf_to_config_packed().
Signed-off-by: default avatarAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Acked-by: default avatarLinus Walleij <linus.walleij@linaro.org>
Reviewed-by: default avatarHans de Goede <hdegoede@redhat.com>
Reviewed-by: default avatarMika Westerberg <mika.westerberg@linux.intel.com>
parent 6900fad6
......@@ -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);
}
......
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