From: Dmitry Torokhov Date: Sat, 20 Sep 2025 20:07:03 +0000 (+0200) Subject: platform/x86: x86-android-tablets: remove support for GPIO lookup tables X-Git-Tag: v6.18-rc1~82^2~13 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=74ff0b6f3ac245287dbff0bab9ff55db4323acc5;p=thirdparty%2Fkernel%2Flinux.git platform/x86: x86-android-tablets: remove support for GPIO lookup tables Now that everything that used the lookup tables has been switched to using property entries to describe GPIOs, we can remove support for registering and unregistering the lookup tables. Signed-off-by: Dmitry Torokhov Tested-by: Hans de Goede Reviewed-by: Hans de Goede Reviewed-by: Andy Shevchenko Signed-off-by: Hans de Goede Link: https://patch.msgid.link/20250920200713.20193-11-hansg@kernel.org Reviewed-by: Ilpo Järvinen Signed-off-by: Ilpo Järvinen --- diff --git a/drivers/platform/x86/x86-android-tablets/core.c b/drivers/platform/x86/x86-android-tablets/core.c index 7b5942010c784..1eb59c999baf6 100644 --- a/drivers/platform/x86/x86-android-tablets/core.c +++ b/drivers/platform/x86/x86-android-tablets/core.c @@ -153,7 +153,6 @@ static struct spi_device **spi_devs; static struct platform_device **pdevs; static struct serdev_device **serdevs; static struct gpio_keys_button *buttons; -static struct gpiod_lookup_table * const *gpiod_lookup_tables; static const struct software_node *bat_swnode; static const struct software_node **gpiochip_node_group; static void (*exit_handler)(void); @@ -394,9 +393,6 @@ static void x86_android_tablet_remove(struct platform_device *pdev) if (gpiochip_node_group) software_node_unregister_node_group(gpiochip_node_group); - - for (i = 0; gpiod_lookup_tables && gpiod_lookup_tables[i]; i++) - gpiod_remove_lookup_table(gpiod_lookup_tables[i]); } static __init int x86_android_tablet_probe(struct platform_device *pdev) @@ -420,10 +416,6 @@ static __init int x86_android_tablet_probe(struct platform_device *pdev) for (i = 0; dev_info->modules && dev_info->modules[i]; i++) request_module(dev_info->modules[i]); - gpiod_lookup_tables = dev_info->gpiod_lookup_tables; - for (i = 0; gpiod_lookup_tables && gpiod_lookup_tables[i]; i++) - gpiod_add_lookup_table(gpiod_lookup_tables[i]); - switch (dev_info->gpiochip_type) { case X86_GPIOCHIP_BAYTRAIL: gpiochip_node_group = baytrail_gpiochip_node_group; diff --git a/drivers/platform/x86/x86-android-tablets/x86-android-tablets.h b/drivers/platform/x86/x86-android-tablets/x86-android-tablets.h index a54d09408866a..d037e3962a51d 100644 --- a/drivers/platform/x86/x86-android-tablets/x86-android-tablets.h +++ b/drivers/platform/x86/x86-android-tablets/x86-android-tablets.h @@ -17,7 +17,6 @@ #include struct gpio_desc; -struct gpiod_lookup_table; struct platform_device_info; struct software_node; @@ -91,7 +90,6 @@ struct x86_gpio_button { struct x86_dev_info { const char * const *modules; const struct software_node *bat_swnode; - struct gpiod_lookup_table * const *gpiod_lookup_tables; const struct x86_i2c_client_info *i2c_client_info; const struct x86_spi_dev_info *spi_dev_info; const struct platform_device_info *pdev_info;