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:
parent
6900fad60a
commit
8b69461c2b
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue