From: Klaus Pedersen Date: Fri, 15 Feb 2008 21:31:40 +0000 (+0200) Subject: tsc2301 - switch to using input_dev->dev.parent X-Git-Tag: v2.6.25-omap1~180 X-Git-Url: http://www.pilppa.org/gitweb/gitweb.cgi?a=commitdiff_plain;h=0e16e719aeb22960dd0fb396d97c76d6cc87136d;p=linux-2.6-omap-h63xx.git 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 --- 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);