diff options
author | Mika Westerberg <mika.westerberg@linux.intel.com> | 2013-04-03 12:56:54 +0200 |
---|---|---|
committer | Linus Walleij <linus.walleij@linaro.org> | 2013-04-12 00:31:18 +0200 |
commit | 12028d2d216220618f76284af5f8ed510b11da55 (patch) | |
tree | 9ecd94ba19b7a39354b4fdd5d85cf8e6a246ab90 /drivers/clocksource/sunxi_timer.c | |
parent | GPIO: gpio-generic: remove kfree() from bgpio_remove call (diff) | |
download | linux-12028d2d216220618f76284af5f8ed510b11da55.tar.xz linux-12028d2d216220618f76284af5f8ed510b11da55.zip |
gpiolib-acpi: introduce acpi_get_gpio_by_index() helper
Instead of open-coding ACPI GPIO resource lookup in each driver, we provide
a helper function analogous to Device Tree version that allows drivers to
specify which GPIO resource they are interested (using an index to the GPIO
resources). The function then finds out the correct resource, translates
the ACPI GPIO number to the corresponding Linux GPIO number and returns
that.
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>
Diffstat (limited to 'drivers/clocksource/sunxi_timer.c')
0 files changed, 0 insertions, 0 deletions