linux-input.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Michael Roth <mroth@nessie.de>
To: linux-input@vger.kernel.org
Cc: dtor@mail.ru, imre.deak@nokia.com, mroth@nessie.de
Subject: [PATCH 1/2] Input: ads7846 - more detailed model name in sysfs
Date: Mon, 18 May 2009 20:23:12 +0200	[thread overview]
Message-ID: <1242670993-6846-2-git-send-email-mroth@nessie.de> (raw)
In-Reply-To: <1242670993-6846-1-git-send-email-mroth@nessie.de>

Signed-off-by: Michael Roth <mroth@nessie.de>
---
 drivers/input/touchscreen/ads7846.c |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/drivers/input/touchscreen/ads7846.c b/drivers/input/touchscreen/ads7846.c
index 4f190dc..642f37d 100644
--- a/drivers/input/touchscreen/ads7846.c
+++ b/drivers/input/touchscreen/ads7846.c
@@ -83,6 +83,7 @@ struct ads7846_packet {
 struct ads7846 {
 	struct input_dev	*input;
 	char			phys[32];
+	char			name[32];
 
 	struct spi_device	*spi;
 
@@ -958,8 +959,9 @@ static int __devinit ads7846_probe(struct spi_device *spi)
 	ts->wait_for_sync = pdata->wait_for_sync ? : null_wait_for_sync;
 
 	snprintf(ts->phys, sizeof(ts->phys), "%s/input0", dev_name(&spi->dev));
+	snprintf(ts->name, sizeof(ts->name), "ADS%d Touchscreen", ts->model);
 
-	input_dev->name = "ADS784x Touchscreen";
+	input_dev->name = ts->name;
 	input_dev->phys = ts->phys;
 	input_dev->dev.parent = &spi->dev;
 
-- 
1.6.0.6


  reply	other threads:[~2009-05-18 18:28 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-18 18:23 [Patch 0/2] ads7846: small improvements Michael Roth
2009-05-18 18:23 ` Michael Roth [this message]
2009-05-18 18:23 ` [PATCH 2/2] Input: ads7846 - support to swap x and y axes Michael Roth
2009-05-20  2:29 ` [Patch 0/2] ads7846: small improvements 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=1242670993-6846-2-git-send-email-mroth@nessie.de \
    --to=mroth@nessie.de \
    --cc=dtor@mail.ru \
    --cc=imre.deak@nokia.com \
    --cc=linux-input@vger.kernel.org \
    /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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).