Input: tps6507x-ts - remove vref from platform data
authorDmitry Torokhov <dmitry.torokhov@gmail.com>
Mon, 15 Apr 2013 18:05:54 +0000 (11:05 -0700)
committerDmitry Torokhov <dmitry.torokhov@gmail.com>
Tue, 25 Jun 2013 16:47:35 +0000 (09:47 -0700)
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>
drivers/input/touchscreen/tps6507x-ts.c
include/linux/input/tps6507x-ts.h

index c981ccf8cf1541a924aca25cb8382965e1aa0301..d3c2967f86fbe52c8add2a5c072e93f3be01a27a 100644 (file)
@@ -44,12 +44,8 @@ struct tps6507x_ts {
        struct delayed_work     work;
        struct ts_event         tc;
        struct tps6507x_dev     *mfd;
-       u16                     model;
        u16                     min_pressure;
-       int                     irq;
-       void                    (*clear_penirq)(void);
        unsigned long           poll_period;    /* ms */
-       int                     vref;           /* non-zero to leave vref on */
        bool                    pendown;
 };
 
@@ -291,7 +287,6 @@ static int tps6507x_ts_probe(struct platform_device *pdev)
 
        if (init_data) {
                tsc->poll_period = init_data->poll_period;
-               tsc->vref = init_data->vref;
                tsc->min_pressure = init_data->min_pressure;
                input_dev->id.vendor = init_data->vendor;
                input_dev->id.product = init_data->product;
index ab1440313924108fb78ef43f01f74a362b098192..b433df801d92c0ecfc252d8b4e71c1e8f6613459 100644 (file)
@@ -14,7 +14,6 @@
 /* Board specific touch screen initial values */
 struct touchscreen_init_data {
        int     poll_period;    /* ms */
-       int     vref;           /* non-zero to leave vref on */
        __u16   min_pressure;   /* min reading to be treated as a touch */
        __u16   vendor;
        __u16   product;