Skip to content

Commit

Permalink
Input: ads7846 - more detailed model name in sysfs
Browse files Browse the repository at this point in the history
Signed-off-by: Michael Roth <[email protected]>
Signed-off-by: Dmitry Torokhov <[email protected]>
  • Loading branch information
mrothNET authored and dtor committed May 20, 2009
1 parent 86579a4 commit b58895f
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion drivers/input/touchscreen/ads7846.c
Original file line number Diff line number Diff line change
Expand Up @@ -83,6 +83,7 @@ struct ads7846_packet {
struct ads7846 {
struct input_dev *input;
char phys[32];
char name[32];

struct spi_device *spi;

Expand Down Expand Up @@ -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;

Expand Down

0 comments on commit b58895f

Please sign in to comment.