Daniel Scally 43582f29b1 gpiolib: acpi: Introduce acpi_get_and_request_gpiod() helper
We need to be able to translate GPIO resources in an ACPI device's _CRS
into GPIO descriptor array. Those are represented in _CRS as a pathname
to a GPIO device plus the pin's index number: the acpi_get_gpiod()
function is perfect for that purpose.

As it's currently only used internally within the GPIO layer, provide and
export a wrapper function that additionally holds a reference to the GPIO
device.

Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
2021-06-04 16:24:19 +03:00
..
2020-07-20 15:34:59 +02:00
2021-04-14 10:19:22 +01:00
2020-07-23 15:03:25 +02:00
2018-05-16 14:35:24 +02:00
2020-01-15 11:24:19 +01:00
2021-05-05 16:07:41 +02:00
2019-09-03 16:04:19 +02:00
2021-05-05 16:07:41 +02:00
2021-05-05 16:07:41 +02:00
2021-05-05 12:39:29 -07:00
2019-11-07 09:27:48 +01:00
2020-12-09 15:17:24 +01:00
2021-02-15 11:43:30 +01:00
2018-01-09 14:51:00 +01:00
2019-11-07 09:27:48 +01:00
2019-12-09 10:40:18 +01:00
2021-03-31 20:32:38 +02:00
2020-12-09 15:17:24 +01:00
2021-05-05 12:39:29 -07:00
2021-05-05 12:39:29 -07:00