]> git.karo-electronics.de Git - karo-tx-linux.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)
commit2eca25af05481c7e462cbc077328e0eb3394d06b
tree216b00f513991cdfd73a13fef2b07bc41231648d
parented7fcf1ed5ea4ea01243995ae085757a77cf0f3e
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