]> git.baikalelectronics.ru Git - kernel.git/commit
gpiolib: acpi: Extract acpi_request_own_gpiod() helper
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Wed, 11 Nov 2020 21:35:33 +0000 (23:35 +0200)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Mon, 16 Nov 2020 12:14:35 +0000 (14:14 +0200)
commita1b65dca90817ff10963c30aa4d03bc804c6d182
treeb718b55a1a5b3a1eb41e57fc6b6c947928a69b95
parent7913015a1e2fb4f4fde8a27fc4a2d31024caea4c
gpiolib: acpi: Extract acpi_request_own_gpiod() helper

It appears that we are using similar code excerpts for ACPI OpRegion
and event handling. Deduplicate those excerpts by extracting a new
acpi_request_own_gpiod() helper.

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>
drivers/gpio/gpiolib-acpi.c