projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
86579a4
)
Input: ads7846 - more detailed model name in sysfs
author
Michael Roth
<
[email protected]
>
Mon, 18 May 2009 23:05:12 +0000
(16:05 -0700)
committer
Dmitry Torokhov
<
[email protected]
>
Wed, 20 May 2009 02:25:27 +0000
(19:25 -0700)
Signed-off-by: Michael Roth <
[email protected]
>
Signed-off-by: Dmitry Torokhov <
[email protected]
>
drivers/input/touchscreen/ads7846.c
patch
|
blob
|
history
diff --git
a/drivers/input/touchscreen/ads7846.c
b/drivers/input/touchscreen/ads7846.c
index b5ad252f5cf1f038269892a0388341b5374cef07..90f792c17ab31801585bbfe0ff165eacb651c201 100644
(file)
--- 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;