]> git.baikalelectronics.ru Git - kernel.git/commit
gpio: acpi: separation of concerns
authorLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Oct 2016 08:40:03 +0000 (10:40 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 3 Oct 2016 21:38:10 +0000 (23:38 +0200)
commit998c4381541ed6dd5dade03eb87b5b475f502c03
tree3e823552153799ffb990cc7b9eb05b541a6b5745
parent3d3cb61009f9b5a538e1593befcd0cf418e20195
gpio: acpi: separation of concerns

The generic GPIO library directly implement code for acpi_find_gpio()
which is only used with CONFIG_ACPI. This was probably done because
OF did the same thing, but I removed that so remove this too.

Rename the internal acpi_find_gpio() in gpiolib-acpi.c to
acpi_populate_gpio_lookup() which seems to be more appropriate anyway
so as to avoid a namespace clash with the same function.

Make the stub return -ENOENT rather than -ENOSYS (as that is for
syscalls!).

For some reason the sunxi pin control driver was including the private
gpiolib header, it works just fine without it so remove that oneliner.

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