diff options
author | Michael Roth <mroth@nessie.de> | 2009-05-18 16:05:12 -0700 |
---|---|---|
committer | Dmitry Torokhov <dmitry.torokhov@gmail.com> | 2009-05-19 19:25:27 -0700 |
commit | b58895f8b1ee0a1bb1821cee71b3f6ecb9540ee6 (patch) | |
tree | c214cd5ac67fa62a302fc7cfdad9c35d5c9777c6 /drivers/input | |
parent | 86579a4cccf18a2ddbf7de8fc5a0f5d9b94ed76d (diff) | |
download | linux-stable-b58895f8b1ee0a1bb1821cee71b3f6ecb9540ee6.tar.gz linux-stable-b58895f8b1ee0a1bb1821cee71b3f6ecb9540ee6.tar.bz2 linux-stable-b58895f8b1ee0a1bb1821cee71b3f6ecb9540ee6.zip |
Input: ads7846 - more detailed model name in sysfs
Signed-off-by: Michael Roth <mroth@nessie.de>
Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
Diffstat (limited to 'drivers/input')
-rw-r--r-- | 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 b5ad252f5cf1..90f792c17ab3 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; @@ -965,8 +966,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; |