]> 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)
commit4abb7772c880177786b1c11d0dd004ab0b0b288b
treeb718b55a1a5b3a1eb41e57fc6b6c947928a69b95
parenta1d898e36f80e972d0614032b8994d7a7f546fd2
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