All of lore.kernel.org
 help / color / mirror / Atom feed
From: Matthias Brugger <matthias.bgg@googlemail.com>
To: Dmitry Torokhov <dmitry.torokhov@gmail.com>,
	linux-input@vger.kernel.org, grinberg@compulab.co.il
Cc: Matthias Brugger <matthias.bgg@gmail.com>
Subject: [PATCH 2/2] touchscreen/ads7846.c: move filter variables to global include
Date: Wed, 24 Oct 2012 13:38:56 +0200	[thread overview]
Message-ID: <1351078736-16785-2-git-send-email-matthias.bgg@gmail.com> (raw)
In-Reply-To: <1351078736-16785-1-git-send-email-matthias.bgg@gmail.com>

To implement a custom filter in the board platform code,
the struct ads7846_filterd might be needed. This patch moves the struct
to the global include file of the driver.

Signed-off-by: Matthias Brugger <matthias.bgg@gmail.com>
---
 drivers/input/touchscreen/ads7846.c |    9 ---------
 include/linux/spi/ads7846.h         |    9 +++++++++
 2 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index 9e61a4b..cc3b048 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -90,15 +90,6 @@ struct ads7846_packet {
 	u8			read_x_cmd[3], read_y_cmd[3], pwrdown_cmd[3];
 };
 
-struct ads7846_filterd {
-	int			read_cnt;
-	int			read_rep;
-	int			last_read;
-	u16			debounce_max;
-	u16			debounce_tol;
-	u16			debounce_rep;
-};
-
 struct ads7846 {
 	struct input_dev	*input;
 	char			phys[32];
diff --git a/include/linux/spi/ads7846.h b/include/linux/spi/ads7846.h
index c64de9d..cc7b34d 100644
--- a/include/linux/spi/ads7846.h
+++ b/include/linux/spi/ads7846.h
@@ -58,3 +58,12 @@ struct ads7846_platform_data {
 	unsigned long irq_flags;
 };
 
+struct ads7846_filterd {
+	int			read_cnt;
+	int			read_rep;
+	int			last_read;
+	u16			debounce_max;
+	u16			debounce_tol;
+	u16			debounce_rep;
+};
+
-- 
1.7.9.5


  reply	other threads:[~2012-10-24 11:39 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-24 11:38 [PATCH 1/2] touchscreen/ads7846.c: Alloc filter data only when needed Matthias Brugger
2012-10-24 11:38 ` Matthias Brugger [this message]
2012-10-24 18:17   ` [PATCH 2/2] touchscreen/ads7846.c: move filter variables to global include Dmitry Torokhov
2012-10-24 18:21 ` [PATCH 1/2] touchscreen/ads7846.c: Alloc filter data only when needed Dmitry Torokhov

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=1351078736-16785-2-git-send-email-matthias.bgg@gmail.com \
    --to=matthias.bgg@googlemail.com \
    --cc=dmitry.torokhov@gmail.com \
    --cc=grinberg@compulab.co.il \
    --cc=linux-input@vger.kernel.org \
    --cc=matthias.bgg@gmail.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.