Skip to content

Commit 74ff0b6

Browse files
dtorij-intel
authored andcommitted
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 <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>
1 parent 27d3e73 commit 74ff0b6

2 files changed

Lines changed: 0 additions & 10 deletions

File tree

drivers/platform/x86/x86-android-tablets/core.c

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -153,7 +153,6 @@ static struct spi_device **spi_devs;
153153
static struct platform_device **pdevs;
154154
static struct serdev_device **serdevs;
155155
static struct gpio_keys_button *buttons;
156-
static struct gpiod_lookup_table * const *gpiod_lookup_tables;
157156
static const struct software_node *bat_swnode;
158157
static const struct software_node **gpiochip_node_group;
159158
static void (*exit_handler)(void);
@@ -394,9 +393,6 @@ static void x86_android_tablet_remove(struct platform_device *pdev)
394393

395394
if (gpiochip_node_group)
396395
software_node_unregister_node_group(gpiochip_node_group);
397-
398-
for (i = 0; gpiod_lookup_tables && gpiod_lookup_tables[i]; i++)
399-
gpiod_remove_lookup_table(gpiod_lookup_tables[i]);
400396
}
401397

402398
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)
420416
for (i = 0; dev_info->modules && dev_info->modules[i]; i++)
421417
request_module(dev_info->modules[i]);
422418

423-
gpiod_lookup_tables = dev_info->gpiod_lookup_tables;
424-
for (i = 0; gpiod_lookup_tables && gpiod_lookup_tables[i]; i++)
425-
gpiod_add_lookup_table(gpiod_lookup_tables[i]);
426-
427419
switch (dev_info->gpiochip_type) {
428420
case X86_GPIOCHIP_BAYTRAIL:
429421
gpiochip_node_group = baytrail_gpiochip_node_group;

drivers/platform/x86/x86-android-tablets/x86-android-tablets.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,6 @@
1717
#include <linux/spi/spi.h>
1818

1919
struct gpio_desc;
20-
struct gpiod_lookup_table;
2120
struct platform_device_info;
2221
struct software_node;
2322

@@ -91,7 +90,6 @@ struct x86_gpio_button {
9190
struct x86_dev_info {
9291
const char * const *modules;
9392
const struct software_node *bat_swnode;
94-
struct gpiod_lookup_table * const *gpiod_lookup_tables;
9593
const struct x86_i2c_client_info *i2c_client_info;
9694
const struct x86_spi_dev_info *spi_dev_info;
9795
const struct platform_device_info *pdev_info;

0 commit comments

Comments
 (0)