Input: drivers/input/touchscreen - don't access dev->private directly
[firefly-linux-kernel-4.4.55.git] / drivers / input / touchscreen / touchright.c
index 35ba46c6ad2d3f77530da62710d6ffacf72792aa..63d2d4491001309ae3709a3fa4ba9092d59acdab 100644 (file)
@@ -118,7 +118,6 @@ static int tr_connect(struct serio *serio, struct serio_driver *drv)
        tr->dev = input_dev;
        snprintf(tr->phys, sizeof(tr->phys), "%s/input0", serio->phys);
 
-       input_dev->private = tr;
        input_dev->name = "Touchright Serial TouchScreen";
        input_dev->phys = tr->phys;
        input_dev->id.bustype = BUS_RS232;