summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJari Helaakoski <tekkuli@gmail.com>2012-12-01 00:07:03 +0400
committerAlejandro Mery <amery@geeks.cl>2013-01-14 14:35:51 +0400
commit207a75a99d1098df8ac8cbd4cfce4faa65840db7 (patch)
tree6b759a8f22b215aabc572658746174b5d2dbc865
parent8bc993052e273c1002550d76d043613c661aaee4 (diff)
downloadlinux-sunxi-207a75a99d1098df8ac8cbd4cfce4faa65840db7.tar.xz
input:touchscreen:ft5x_ts: Make device visible under /sys/class/input/input*
-rw-r--r--drivers/input/touchscreen/ft5x_ts.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/drivers/input/touchscreen/ft5x_ts.c b/drivers/input/touchscreen/ft5x_ts.c
index 71f341ace0e6..4e14f65ffb12 100644
--- a/drivers/input/touchscreen/ft5x_ts.c
+++ b/drivers/input/touchscreen/ft5x_ts.c
@@ -1735,6 +1735,8 @@ ft5x_ts_probe(struct i2c_client *client, const struct i2c_device_id *id)
set_bit(EV_KEY, input_dev->evbit);
input_dev->name = CTP_NAME; //dev_name(&client->dev)
+ input_dev->id.bustype = BUS_I2C;
+ input_dev->dev.parent = &client->dev;
err = input_register_device(input_dev);
if (err) {
dev_err(&client->dev,