From: Dmitry Torokhov <dmitry.torokhov@gmail.com>
To: linux-input@vger.kernel.org
Cc: manishv.b@ti.com, davinci-linux-open-source@linux.davincidsp.com
Subject: [PATCH 2/3] Input: tps6507x-ts - remove vref from platform data
Date: Sun, 9 Jun 2013 22:53:46 -0700 [thread overview]
Message-ID: <1370843627-30823-2-git-send-email-dmitry.torokhov@gmail.com> (raw)
In-Reply-To: <1370843627-30823-1-git-send-email-dmitry.torokhov@gmail.com>
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 | 5 -----
include/linux/input/tps6507x-ts.h | 1 -
2 files changed, 6 deletions(-)
diff --git a/drivers/input/touchscreen/tps6507x-ts.c b/drivers/input/touchscreen/tps6507x-ts.c
index c981ccf..d3c2967 100644
--- a/drivers/input/touchscreen/tps6507x-ts.c
+++ b/drivers/input/touchscreen/tps6507x-ts.c
@@ -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;
diff --git a/include/linux/input/tps6507x-ts.h b/include/linux/input/tps6507x-ts.h
index ab14403..b433df8 100644
--- a/include/linux/input/tps6507x-ts.h
+++ b/include/linux/input/tps6507x-ts.h
@@ -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;
--
1.8.1.4
next prev parent reply other threads:[~2013-06-10 5:53 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-06-10 5:53 [PATCH 1/3] Input: tps6507x-ts - use bool for booleans Dmitry Torokhov
2013-06-10 5:53 ` Dmitry Torokhov [this message]
2013-07-02 15:49 ` [PATCH 2/3] Input: tps6507x-ts - remove vref from platform data Kevin Hilman
2013-06-10 5:53 ` [PATCH 3/3] Input: tps6507x-ts - convert to polled input device infrastructure Dmitry Torokhov
2013-06-12 7:12 ` Vishwanathrao Badarkhe, Manish
2013-06-19 6:17 ` Dmitry Torokhov
2013-07-01 6:42 ` Manish Badarkhe
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1370843627-30823-2-git-send-email-dmitry.torokhov@gmail.com \
--to=dmitry.torokhov@gmail.com \
--cc=davinci-linux-open-source@linux.davincidsp.com \
--cc=linux-input@vger.kernel.org \
--cc=manishv.b@ti.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.