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)
commit381d785d9eefd2516985f662c71fde1f028b014d
tree86d56b3c66f3edde7129a90771bf0edd60ad16f7
parentde7601a681bf74ea0ce025f0461e9452afeaeead
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