]> git.karo-electronics.de Git - linux-beck.git/commitdiff
MFD: ucb1x00-ts: provide input layer with device parent
authorRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 21 Jan 2012 09:30:27 +0000 (09:30 +0000)
committerRussell King <rmk+kernel@arm.linux.org.uk>
Sat, 18 Feb 2012 23:15:31 +0000 (23:15 +0000)
Provide the input layer struct device with its parent device, so
that the input layer's device appears in the correct place in the
device tree.  This also allows the input device to be visibily
associated with its hardware.

Acked-by: Jochen Friedrich <jochen@scram.de>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
drivers/mfd/ucb1x00-ts.c

index ec6ffb6e287d19b6107c4d04e5244e4d03779477..742d0c7bbbc289b56c7b0f7668e56f27919b90c0 100644 (file)
@@ -363,6 +363,7 @@ static int ucb1x00_ts_add(struct ucb1x00_dev *dev)
        idev->id.product = ts->ucb->id;
        idev->open       = ucb1x00_ts_open;
        idev->close      = ucb1x00_ts_close;
+       idev->dev.parent = &ts->ucb->dev;
 
        idev->evbit[0]   = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY);
        idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);