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>
This commit is contained in:
parent
bf97279079
commit
97feacc05d
|
@ -24,7 +24,6 @@
|
|||
#include <linux/kernel.h>
|
||||
#include <linux/leds.h>
|
||||
#include <linux/init.h>
|
||||
#include <linux/platform_data/gpio-ts5500.h>
|
||||
#include <linux/platform_data/max197.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
|
|
|
@ -23,7 +23,6 @@
|
|||
#include <linux/gpio/driver.h>
|
||||
#include <linux/io.h>
|
||||
#include <linux/module.h>
|
||||
#include <linux/platform_data/gpio-ts5500.h>
|
||||
#include <linux/platform_device.h>
|
||||
#include <linux/slab.h>
|
||||
|
||||
|
@ -315,7 +314,6 @@ static void ts5500_disable_irq(struct ts5500_priv *priv)
|
|||
static int ts5500_dio_probe(struct platform_device *pdev)
|
||||
{
|
||||
enum ts5500_blocks block = platform_get_device_id(pdev)->driver_data;
|
||||
struct ts5500_dio_platform_data *pdata = dev_get_platdata(&pdev->dev);
|
||||
struct device *dev = &pdev->dev;
|
||||
const char *name = dev_name(dev);
|
||||
struct ts5500_priv *priv;
|
||||
|
@ -346,10 +344,6 @@ static int ts5500_dio_probe(struct platform_device *pdev)
|
|||
priv->gpio_chip.set = ts5500_gpio_set;
|
||||
priv->gpio_chip.to_irq = ts5500_gpio_to_irq;
|
||||
priv->gpio_chip.base = -1;
|
||||
if (pdata) {
|
||||
priv->gpio_chip.base = pdata->base;
|
||||
priv->strap = pdata->strap;
|
||||
}
|
||||
|
||||
switch (block) {
|
||||
case TS5500_DIO1:
|
||||
|
|
|
@ -1,24 +0,0 @@
|
|||
/* SPDX-License-Identifier: GPL-2.0 */
|
||||
/*
|
||||
* GPIO (DIO) header for Technologic Systems TS-5500
|
||||
*
|
||||
* Copyright (c) 2012 Savoir-faire Linux Inc.
|
||||
* Vivien Didelot <vivien.didelot@savoirfairelinux.com>
|
||||
*/
|
||||
|
||||
#ifndef _PDATA_GPIO_TS5500_H
|
||||
#define _PDATA_GPIO_TS5500_H
|
||||
|
||||
/**
|
||||
* struct ts5500_dio_platform_data - TS-5500 pin block configuration
|
||||
* @base: The GPIO base number to use.
|
||||
* @strap: The only pin connected to an interrupt in a block is input-only.
|
||||
* If you need a bidirectional line which can trigger an IRQ, you
|
||||
* may strap it with an in/out pin. This flag indicates this case.
|
||||
*/
|
||||
struct ts5500_dio_platform_data {
|
||||
int base;
|
||||
bool strap;
|
||||
};
|
||||
|
||||
#endif /* _PDATA_GPIO_TS5500_H */
|
Loading…
Reference in New Issue