aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/platform/surface/aggregator/core.c
diff options
context:
space:
mode:
authorDaniel Scally <djrscally@gmail.com>2021-06-03 23:40:04 +0100
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>2021-06-04 16:24:19 +0300
commit43582f29b161d820717bc13f562bca27af12e3cf (patch)
tree75477f0f5b79f101d2158ebd70f3d58908dc633a /drivers/platform/surface/aggregator/core.c
parentgpio: wcove: Split error handling for CTRL and IRQ registers (diff)
downloadlinux-dev-43582f29b161d820717bc13f562bca27af12e3cf.tar.xz
linux-dev-43582f29b161d820717bc13f562bca27af12e3cf.zip
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>
Diffstat (limited to 'drivers/platform/surface/aggregator/core.c')
0 files changed, 0 insertions, 0 deletions