]> git.proxmox.com Git - mirror_ubuntu-bionic-kernel.git/commit - Documentation/acpi/gpio-properties.txt
ACPI / gpio: Allow holes in list of GPIOs for a device
authorMika Westerberg <mika.westerberg@linux.intel.com>
Fri, 21 Oct 2016 14:21:29 +0000 (17:21 +0300)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 24 Oct 2016 14:33:11 +0000 (16:33 +0200)
commit6f7194a10bdba1588357342c6daaaeef98e0004f
tree6c68613312a5cd165f8396a48e7e9ac78adea283
parent1208c93525f9385354588f74c3db5413bd7781dc
ACPI / gpio: Allow holes in list of GPIOs for a device

Make it possible to have an empty GPIOs in a GPIO list for device. For
example a SPI master may use both GPIOs and native pins as chip selects and
we need to be able to distinguish between the two.

This makes it mandatory to have exactly 3 arguments for GPIOs and then
converts gpiolib to use of __acpi_node_get_property_reference() instead. In
addition we make acpi_gpio_package_count() to handle holes as well (this
matches the DT version).

Signed-off-by: Mika Westerberg <mika.westerberg@linux.intel.com>
Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/acpi/gpio-properties.txt
drivers/gpio/gpiolib-acpi.c