]> git.proxmox.com Git - mirror_ubuntu-jammy-kernel.git/commit - include/linux/acpi.h
gpiolib: acpi: Add acpi_gpio_get_io_resource()
authorDaniel Scally <djrscally@gmail.com>
Thu, 3 Jun 2021 22:40:05 +0000 (23:40 +0100)
committerAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Fri, 4 Jun 2021 13:24:19 +0000 (16:24 +0300)
commit043d7f09bf614809c10c4acbf0695ef731958300
tree8a62dceefab5f54426f90f838c7eb91a04294322
parent43582f29b161d820717bc13f562bca27af12e3cf
gpiolib: acpi: Add acpi_gpio_get_io_resource()

Add a function to verify that a given ACPI resource represents a GpioIo()
type of resource, and return it if so.

Reviewed-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Signed-off-by: Daniel Scally <djrscally@gmail.com>
Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
drivers/gpio/gpiolib-acpi.c
include/linux/acpi.h