Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

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