]> www.pilppa.org Git - linux-2.6-omap-h63xx.git/commitdiff
tsc2301 - switch to using input_dev->dev.parent
authorKlaus Pedersen <klaus.k.pedersen@nokia.com>
Fri, 15 Feb 2008 21:31:40 +0000 (23:31 +0200)
committerTony Lindgren <tony@atomide.com>
Thu, 21 Feb 2008 00:20:20 +0000 (16:20 -0800)
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>
drivers/input/touchscreen/tsc2301_ts.c

index 393bba89c54daf2cd1e2bf66aa461e5a3e2d2e9c..a01aa58c2cea722bd77aa55c3874b11f107bf31a 100644 (file)
@@ -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);