Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 318289
b: refs/heads/master
c: ec02ac2
h: refs/heads/master
i:
  318287: 65dae6d
v: v3
  • Loading branch information
Daniel Kurtz authored and Henrik Rydberg committed Jun 29, 2012
1 parent 150010e commit cffb935
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 27c347d64f5e4a7e141f6bdb85bbf59e0f1dcde6
refs/heads/master: ec02ac2b7e1ad04ab2486fe9b2fbfc3ad5178f7c
5 changes: 5 additions & 0 deletions trunk/drivers/input/touchscreen/atmel_mxt_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -250,6 +250,7 @@ struct mxt_finger {
struct mxt_data {
struct i2c_client *client;
struct input_dev *input_dev;
char phys[64]; /* device physical location */
const struct mxt_platform_data *pdata;
struct mxt_object *object_table;
struct mxt_info info;
Expand Down Expand Up @@ -1106,6 +1107,10 @@ static int __devinit mxt_probe(struct i2c_client *client,
}

input_dev->name = "Atmel maXTouch Touchscreen";
snprintf(data->phys, sizeof(data->phys), "i2c-%u-%04x/input0",
client->adapter->nr, client->addr);
input_dev->phys = data->phys;

input_dev->id.bustype = BUS_I2C;
input_dev->dev.parent = &client->dev;
input_dev->open = mxt_input_open;
Expand Down

0 comments on commit cffb935

Please sign in to comment.