Commit 626feb86 authored by Marek Vasut's avatar Marek Vasut Committed by Dmitry Torokhov

Input: ili210x - drop platform data support

There is not a single user of the ili210x platform data in the kernel,
just drop it.
Signed-off-by: default avatarMarek Vasut <marex@denx.de>
Signed-off-by: default avatarDmitry Torokhov <dmitry.torokhov@gmail.com>
parent 41a852e0
...@@ -6,7 +6,6 @@ ...@@ -6,7 +6,6 @@
#include <linux/input/mt.h> #include <linux/input/mt.h>
#include <linux/delay.h> #include <linux/delay.h>
#include <linux/workqueue.h> #include <linux/workqueue.h>
#include <linux/input/ili210x.h>
#define MAX_TOUCHES 2 #define MAX_TOUCHES 2
#define DEFAULT_POLL_PERIOD 20 #define DEFAULT_POLL_PERIOD 20
...@@ -184,7 +183,6 @@ static int ili210x_i2c_probe(struct i2c_client *client, ...@@ -184,7 +183,6 @@ static int ili210x_i2c_probe(struct i2c_client *client,
const struct i2c_device_id *id) const struct i2c_device_id *id)
{ {
struct device *dev = &client->dev; struct device *dev = &client->dev;
const struct ili210x_platform_data *pdata = dev_get_platdata(dev);
struct ili210x *priv; struct ili210x *priv;
struct input_dev *input; struct input_dev *input;
struct panel_info panel; struct panel_info panel;
...@@ -194,11 +192,6 @@ static int ili210x_i2c_probe(struct i2c_client *client, ...@@ -194,11 +192,6 @@ static int ili210x_i2c_probe(struct i2c_client *client,
dev_dbg(dev, "Probing for ILI210X I2C Touschreen driver"); dev_dbg(dev, "Probing for ILI210X I2C Touschreen driver");
if (!pdata) {
dev_err(dev, "No platform data!\n");
return -EINVAL;
}
if (client->irq <= 0) { if (client->irq <= 0) {
dev_err(dev, "No IRQ!\n"); dev_err(dev, "No IRQ!\n");
return -EINVAL; return -EINVAL;
...@@ -233,8 +226,7 @@ static int ili210x_i2c_probe(struct i2c_client *client, ...@@ -233,8 +226,7 @@ static int ili210x_i2c_probe(struct i2c_client *client,
priv->client = client; priv->client = client;
priv->input = input; priv->input = input;
priv->get_pendown_state = pdata->get_pendown_state; priv->poll_period = DEFAULT_POLL_PERIOD;
priv->poll_period = pdata->poll_period ? : DEFAULT_POLL_PERIOD;
INIT_DELAYED_WORK(&priv->dwork, ili210x_work); INIT_DELAYED_WORK(&priv->dwork, ili210x_work);
/* Setup input device */ /* Setup input device */
...@@ -258,7 +250,7 @@ static int ili210x_i2c_probe(struct i2c_client *client, ...@@ -258,7 +250,7 @@ static int ili210x_i2c_probe(struct i2c_client *client,
i2c_set_clientdata(client, priv); i2c_set_clientdata(client, priv);
error = request_irq(client->irq, ili210x_irq, pdata->irq_flags, error = request_irq(client->irq, ili210x_irq, 0,
client->name, priv); client->name, priv);
if (error) { if (error) {
dev_err(dev, "Unable to request touchscreen IRQ, err: %d\n", dev_err(dev, "Unable to request touchscreen IRQ, err: %d\n",
......
/* SPDX-License-Identifier: GPL-2.0 */
#ifndef _ILI210X_H
#define _ILI210X_H
struct ili210x_platform_data {
unsigned long irq_flags;
unsigned int poll_period;
bool (*get_pendown_state)(void);
};
#endif
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment