History

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.

Dmitry Torokhov committed 13 years ago

Commit 22381281 parent 02a71602 files · +0 −6Browse files

Unified · Split

2 files
  1. drivers/input/touchscreen/tps6507x-ts.c +0 −5
  2. include/linux/input/tps6507x-ts.h +0 −1
drivers/input/touchscreen/tps6507x-ts.c+0−5
@@ -44,12 +44,8 @@ struct tps6507x_ts { · 43 unmodified lines
44 struct delayed_work work;44 struct delayed_work work;
45 struct ts_event tc;45 struct ts_event tc;
46 struct tps6507x_dev *mfd;46 struct tps6507x_dev *mfd;
47 u16 model;
48 u16 min_pressure;47 u16 min_pressure;
49 int irq;
50 void (*clear_penirq)(void);
51 unsigned long poll_period; /* ms */48 unsigned long poll_period; /* ms */
52 int vref; /* non-zero to leave vref on */
53 bool pendown;49 bool pendown;
54};50};
55 51
@@ -291,7 +287,6 @@ static int tps6507x_ts_probe(struct platform_device *pdev) · 235 unmodified lines
291 287
292 if (init_data) {288 if (init_data) {
293 tsc->poll_period = init_data->poll_period;289 tsc->poll_period = init_data->poll_period;
294 tsc->vref = init_data->vref;
295 tsc->min_pressure = init_data->min_pressure;290 tsc->min_pressure = init_data->min_pressure;
296 input_dev->id.vendor = init_data->vendor;291 input_dev->id.vendor = init_data->vendor;
297 input_dev->id.product = init_data->product;292 input_dev->id.product = init_data->product;
include/linux/input/tps6507x-ts.h+0−1
@@ -14,7 +14,6 @@ · 13 unmodified lines
14/* Board specific touch screen initial values */14/* Board specific touch screen initial values */
15struct touchscreen_init_data {15struct touchscreen_init_data {
16 int poll_period; /* ms */16 int poll_period; /* ms */
17 int vref; /* non-zero to leave vref on */
18 __u16 min_pressure; /* min reading to be treated as a touch */17 __u16 min_pressure; /* min reading to be treated as a touch */
19 __u16 vendor;18 __u16 vendor;
20 __u16 product;19 __u16 product;

Keyboard shortcuts

General

Show keyboard shortcuts
?
Focus the current search
/

Issues and pull requests

Open filters
f

Issues, pull requests and Inbox

Select next item
j↓
Select previous item
k↑
Open selected item
Enter
Dismiss filters or clear selection
Esc

Repository code

Go to file
t