Skip to content

Commit 2238128

Browse files
committed
Input: tps6507x-ts - remove vref from platform data
Although defined in platform data, vref is not used anywhere. Also remove model, irq, and clear_penirq as they are not used either. Signed-off-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>
1 parent 02a7160 commit 2238128

File tree

2 files changed

+0
-6
lines changed

2 files changed

+0
-6
lines changed

drivers/input/touchscreen/tps6507x-ts.c

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,12 +44,8 @@ struct tps6507x_ts {
4444
struct delayed_work work;
4545
struct ts_event tc;
4646
struct tps6507x_dev *mfd;
47-
u16 model;
4847
u16 min_pressure;
49-
int irq;
50-
void (*clear_penirq)(void);
5148
unsigned long poll_period; /* ms */
52-
int vref; /* non-zero to leave vref on */
5349
bool pendown;
5450
};
5551

@@ -291,7 +287,6 @@ static int tps6507x_ts_probe(struct platform_device *pdev)
291287

292288
if (init_data) {
293289
tsc->poll_period = init_data->poll_period;
294-
tsc->vref = init_data->vref;
295290
tsc->min_pressure = init_data->min_pressure;
296291
input_dev->id.vendor = init_data->vendor;
297292
input_dev->id.product = init_data->product;

include/linux/input/tps6507x-ts.h

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
/* Board specific touch screen initial values */
1515
struct touchscreen_init_data {
1616
int poll_period; /* ms */
17-
int vref; /* non-zero to leave vref on */
1817
__u16 min_pressure; /* min reading to be treated as a touch */
1918
__u16 vendor;
2019
__u16 product;

0 commit comments

Comments
 (0)