platform/x86: x86-android-tablets: Create a platform_device from module_init()
authorHans de Goede <hdegoede@redhat.com>
Sat, 9 Sep 2023 14:18:13 +0000 (16:18 +0200)
committerHans de Goede <hdegoede@redhat.com>
Mon, 11 Sep 2023 11:28:58 +0000 (13:28 +0200)
commit8b57d33a6fdbb53d03da762b31e65a1027f74caf
tree90b55d6fb26f9afc4ad67ac1a50eb2ffdccd08df
parent56e1f53b58fd13e642a9665eb014860f31f5fc1d
platform/x86: x86-android-tablets: Create a platform_device from module_init()

Create a platform_device from module_init() and change
x86_android_tablet_init() / cleanup() into platform_device
probe() and remove() functions.

This is a preparation patch for refactoring x86_android_tablet_get_gpiod()
to no longer use gpiolib private functions like gpiochip_find().

Signed-off-by: Hans de Goede <hdegoede@redhat.com>
Acked-by: Linus Walleij <linus.walleij@linaro.org>
Link: https://lore.kernel.org/r/20230909141816.58358-6-hdegoede@redhat.com
drivers/platform/x86/x86-android-tablets/core.c