From similar drivers (Dmitry Torokhov <dtor@mail.ru>):
In preparation for struct class_device -> struct device input
core conversion, switch to using input_dev->dev.parent when
specifying device position in sysfs tree.
Signed-off-by: Klaus Pedersen <klaus.k.pedersen@nokia.com>
Signed-off-by: Tony Lindgren <tony@atomide.com>
snprintf(ts->phys, sizeof(ts->phys),
"%s/input-ts", tsc->spi->dev.bus_id);
idev->phys = ts->phys;
+ idev->dev.parent = &tsc->spi->dev;
idev->evbit[0] = BIT(EV_ABS) | BIT(EV_KEY);
idev->absbit[0] = BIT(ABS_X) | BIT(ABS_Y) | BIT(ABS_PRESSURE);