]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: acpi: Factor out acpi_gpio_to_gpiod_flags() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 23 May 2017 17:03:22 +0000 (20:03 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 29 May 2017 09:20:52 +0000 (11:20 +0200)
commite9e010eb1709e86ef6d68b666a5fb01e200295ab
tree216b00f513991cdfd73a13fef2b07bc41231648d
parent41ff2fd476eb991ce28fbf4940303676f147eead
gpio: acpi: Factor out acpi_gpio_to_gpiod_flags() helper

The helper function acpi_gpio_to_gpiod_flags() will be used later to configure
pin properly whenever it's requested.

While here, introduce a checking error code returned by gpiod_configure_flags()
and bail out if it's not okay.

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Tested-by: Jarkko Nikula <jarkko.nikula@linux.intel.com>
Reviewed-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib-acpi.c