Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

gpio: ts5500: Delete platform data handling

The TS5500 GPIO driver apparently supports platform data
without making any use of it whatsoever. Delete this code,
last chance to speak up if you think it is needed.

Cc: kernel@savoirfairelinux.com
Cc: Vivien Didelot <vivien.didelot@savoirfairelinux.com>
Cc: Jerome Oufella <jerome.oufella@savoirfairelinux.com>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

-31
-1
arch/x86/platform/ts5500/ts5500.c
··· 24 24 #include <linux/kernel.h> 25 25 #include <linux/leds.h> 26 26 #include <linux/init.h> 27 - #include <linux/platform_data/gpio-ts5500.h> 28 27 #include <linux/platform_data/max197.h> 29 28 #include <linux/platform_device.h> 30 29 #include <linux/slab.h>
-6
drivers/gpio/gpio-ts5500.c
··· 23 23 #include <linux/gpio/driver.h> 24 24 #include <linux/io.h> 25 25 #include <linux/module.h> 26 - #include <linux/platform_data/gpio-ts5500.h> 27 26 #include <linux/platform_device.h> 28 27 #include <linux/slab.h> 29 28 ··· 314 315 static int ts5500_dio_probe(struct platform_device *pdev) 315 316 { 316 317 enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data; 317 - struct ts5500_dio_platform_data *pdata = dev_get_platdata(&pdev->dev); 318 318 struct device *dev = &pdev->dev; 319 319 const char *name = dev_name(dev); 320 320 struct ts5500_priv *priv; ··· 344 346 priv->gpio_chip.set = ts5500_gpio_set; 345 347 priv->gpio_chip.to_irq = ts5500_gpio_to_irq; 346 348 priv->gpio_chip.base = -1; 347 - if (pdata) { 348 - priv->gpio_chip.base = pdata->base; 349 - priv->strap = pdata->strap; 350 - } 351 349 352 350 switch (block) { 353 351 case TS5500_DIO1:
-24
include/linux/platform_data/gpio-ts5500.h
··· 1 - /* SPDX-License-Identifier: GPL-2.0 */ 2 - /* 3 - * GPIO (DIO) header for Technologic Systems TS-5500 4 - * 5 - * Copyright (c) 2012 Savoir-faire Linux Inc. 6 - * Vivien Didelot <vivien.didelot@savoirfairelinux.com> 7 - */ 8 - 9 - #ifndef _PDATA_GPIO_TS5500_H 10 - #define _PDATA_GPIO_TS5500_H 11 - 12 - /** 13 - * struct ts5500_dio_platform_data - TS-5500 pin block configuration 14 - * @base: The GPIO base number to use. 15 - * @strap: The only pin connected to an interrupt in a block is input-only. 16 - * If you need a bidirectional line which can trigger an IRQ, you 17 - * may strap it with an in/out pin. This flag indicates this case. 18 - */ 19 - struct ts5500_dio_platform_data { 20 - int base; 21 - bool strap; 22 - }; 23 - 24 - #endif /* _PDATA_GPIO_TS5500_H */