diff options
Diffstat (limited to 'drivers/input/touchscreen/touchright.c')
-rw-r--r-- | drivers/input/touchscreen/touchright.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/input/touchscreen/touchright.c b/drivers/input/touchscreen/touchright.c index 35ba46c6ad2d..3def7bb1df44 100644 --- a/drivers/input/touchscreen/touchright.c +++ b/drivers/input/touchscreen/touchright.c | |||
@@ -118,13 +118,13 @@ static int tr_connect(struct serio *serio, struct serio_driver *drv) | |||
118 | tr->dev = input_dev; | 118 | tr->dev = input_dev; |
119 | snprintf(tr->phys, sizeof(tr->phys), "%s/input0", serio->phys); | 119 | snprintf(tr->phys, sizeof(tr->phys), "%s/input0", serio->phys); |
120 | 120 | ||
121 | input_dev->private = tr; | ||
122 | input_dev->name = "Touchright Serial TouchScreen"; | 121 | input_dev->name = "Touchright Serial TouchScreen"; |
123 | input_dev->phys = tr->phys; | 122 | input_dev->phys = tr->phys; |
124 | input_dev->id.bustype = BUS_RS232; | 123 | input_dev->id.bustype = BUS_RS232; |
125 | input_dev->id.vendor = SERIO_TOUCHRIGHT; | 124 | input_dev->id.vendor = SERIO_TOUCHRIGHT; |
126 | input_dev->id.product = 0; | 125 | input_dev->id.product = 0; |
127 | input_dev->id.version = 0x0100; | 126 | input_dev->id.version = 0x0100; |
127 | input_dev->dev.parent = &serio->dev; | ||
128 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); | 128 | input_dev->evbit[0] = BIT(EV_KEY) | BIT(EV_ABS); |
129 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); | 129 | input_dev->keybit[LONG(BTN_TOUCH)] = BIT(BTN_TOUCH); |
130 | input_set_abs_params(tr->dev, ABS_X, TR_MIN_XC, TR_MAX_XC, 0, 0); | 130 | input_set_abs_params(tr->dev, ABS_X, TR_MIN_XC, TR_MAX_XC, 0, 0); |