]> git.ipfire.org Git - thirdparty/linux.git/commitdiff
platform/x86: x86-android-tablets: remove support for GPIO lookup tables
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Sat, 20 Sep 2025 20:07:03 +0000 (22:07 +0200)
committerIlpo Järvinen <ilpo.jarvinen@linux.intel.com>
Fri, 26 Sep 2025 11:26:27 +0000 (14:26 +0300)
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 <dmitry.torokhov@gmail.com>
Tested-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Hans de Goede <hansg@kernel.org>
Reviewed-by: Andy Shevchenko <andy@kernel.org>
Signed-off-by: Hans de Goede <hansg@kernel.org>
Link: https://patch.msgid.link/20250920200713.20193-11-hansg@kernel.org
Reviewed-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
Signed-off-by: Ilpo Järvinen <ilpo.jarvinen@linux.intel.com>
drivers/platform/x86/x86-android-tablets/core.c
drivers/platform/x86/x86-android-tablets/x86-android-tablets.h

index 7b5942010c784c27fc97f16cba6cd5f2e9066369..1eb59c999baf69222ce0e5e5a2ef46d02ad9ce8e 100644 (file)
@@ -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;
index a54d09408866a9582dbe2f76f44b256b9a3e474a..d037e3962a51d7a672afc3b48b5037690a4a9b0d 100644 (file)
@@ -17,7 +17,6 @@
 #include <linux/spi/spi.h>
 
 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;