Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 108918
b: refs/heads/master
c: b6ce9ad
h: refs/heads/master
v: v3
  • Loading branch information
Magnus Damm authored and Paul Mundt committed Aug 11, 2008
1 parent af9fb8d commit 2e2d18b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 2fc91882c24908f5f785ed094cfe74214c44af8d
refs/heads/master: b6ce9ad05f782e6a00aed8432d9513dc394115ce
11 changes: 9 additions & 2 deletions trunk/drivers/input/touchscreen/migor_ts.c
Original file line number Diff line number Diff line change
Expand Up @@ -173,7 +173,7 @@ static int migor_ts_probe(struct i2c_client *client,
input_set_abs_params(input, ABS_X, 95, 955, 0, 0);
input_set_abs_params(input, ABS_Y, 85, 935, 0, 0);

input->name = client->driver_name;
input->name = client->name;
input->id.bustype = BUS_I2C;
input->dev.parent = &client->dev;

Expand All @@ -192,7 +192,7 @@ static int migor_ts_probe(struct i2c_client *client,
goto err1;

error = request_irq(priv->irq, migor_ts_isr, IRQF_TRIGGER_LOW,
client->driver_name, priv);
client->name, priv);
if (error) {
dev_err(&client->dev, "Unable to request touchscreen IRQ.\n");
goto err2;
Expand Down Expand Up @@ -224,12 +224,19 @@ static int migor_ts_remove(struct i2c_client *client)
return 0;
}

static const struct i2c_device_id migor_ts_id[] = {
{ "migor_ts", 0 },
{ }
};
MODULE_DEVICE_TABLE(i2c, migor_ts);

static struct i2c_driver migor_ts_driver = {
.driver = {
.name = "migor_ts",
},
.probe = migor_ts_probe,
.remove = migor_ts_remove,
.id_table = migor_ts_id,
};

static int __init migor_ts_init(void)
Expand Down

0 comments on commit 2e2d18b

Please sign in to comment.