Skip to content

Commit f261d46

Browse files
committed
Input: tsc2007 - remove unused poll_delay from platform data
The driver does not use poll_delay parameter, so let's remove it. Tested-by: Denis Carikli <[email protected]> Signed-off-by: Dmitry Torokhov <[email protected]>
1 parent 07f9e5c commit f261d46

File tree

2 files changed

+0
-4
lines changed

2 files changed

+0
-4
lines changed

drivers/input/touchscreen/tsc2007.c

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ struct tsc2007 {
7575
u16 model;
7676
u16 x_plate_ohms;
7777
u16 max_rt;
78-
unsigned long poll_delay;
7978
unsigned long poll_period;
8079
int fuzzx;
8180
int fuzzy;
@@ -351,7 +350,6 @@ static int tsc2007_probe_pdev(struct i2c_client *client, struct tsc2007 *ts,
351350
ts->model = pdata->model;
352351
ts->x_plate_ohms = pdata->x_plate_ohms;
353352
ts->max_rt = pdata->max_rt ? : MAX_12BIT;
354-
ts->poll_delay = pdata->poll_delay ? : 1;
355353
ts->poll_period = pdata->poll_period ? : 1;
356354
ts->get_pendown_state = pdata->get_pendown_state;
357355
ts->clear_penirq = pdata->clear_penirq;

include/linux/i2c/tsc2007.h

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,8 +7,6 @@ struct tsc2007_platform_data {
77
u16 model; /* 2007. */
88
u16 x_plate_ohms; /* must be non-zero value */
99
u16 max_rt; /* max. resistance above which samples are ignored */
10-
unsigned long poll_delay; /* delay (in ms) after pen-down event
11-
before polling starts */
1210
unsigned long poll_period; /* time (in ms) between samples */
1311
int fuzzx; /* fuzz factor for X, Y and pressure axes */
1412
int fuzzy;

0 commit comments

Comments
 (0)