]> git.baikalelectronics.ru Git - kernel.git/commit
platform/x86: x86-android-tablets: Add x86_android_tablet_get_gpiod() helper
authorHans de Goede <hdegoede@redhat.com>
Sat, 5 Feb 2022 19:13:53 +0000 (20:13 +0100)
committerHans de Goede <hdegoede@redhat.com>
Fri, 11 Feb 2022 09:46:47 +0000 (10:46 +0100)
commit84c823bf75423c128c13c0e35b77d3cd8efa31ba
tree86d56b3c66f3edde7129a90771bf0edd60ad16f7
parent97d5015c39083680045efd293e2878b534d7c6d0
platform/x86: x86-android-tablets: Add x86_android_tablet_get_gpiod() helper

Factor the code to go from a gpiochip label + pin-numer to a gpio_desc
out of x86_acpi_irq_helper_get() and make it into a new
x86_android_tablet_get_gpiod() helper, as this will be necessary in some
x86_dev_info.init() functions too.

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Reviewed-by: Andy Shevchenko <andy.shevchenko@gmail.com>
Link: https://lore.kernel.org/r/20220205191356.225505-3-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets.c