From 0e16e719aeb22960dd0fb396d97c76d6cc87136d Mon Sep 17 00:00:00 2001 From: Klaus Pedersen Date: Fri, 15 Feb 2008 23:31:40 +0200 Subject: [PATCH] tsc2301 - switch to using input_dev->dev.parent From similar drivers (Dmitry Torokhov ): 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 Signed-off-by: Tony Lindgren --- drivers/input/touchscreen/tsc2301_ts.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/input/touchscreen/tsc2301_ts.c b/drivers/input/touchscreen/tsc2301_ts.c index 393bba89c54..a01aa58c2ce 100644 --- a/drivers/input/touchscreen/tsc2301_ts.c +++ b/drivers/input/touchscreen/tsc2301_ts.c @@ -611,6 +611,7 @@ int __devinit tsc2301_ts_init(struct tsc2301 *tsc, 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); -- 2.41.0