aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/mfd/ucb1x00-ts.c
diff options
context:
space:
mode:
authorRussell King <rmk+kernel@arm.linux.org.uk>2012-01-21 04:30:27 -0500
committerRussell King <rmk+kernel@arm.linux.org.uk>2012-02-18 18:15:31 -0500
commit945f6310d3cf0523560b33b9ddb3271666141bd5 (patch)
tree218cdca0f2854adc17d9e50efc0f9c3154954339 /drivers/mfd/ucb1x00-ts.c
parentabe06082d07fcb0673cb93338c1d6f037fdc375b (diff)
MFD: ucb1x00-ts: provide input layer with device parent
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>
Diffstat (limited to 'drivers/mfd/ucb1x00-ts.c')
-rw-r--r--drivers/mfd/ucb1x00-ts.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/mfd/ucb1x00-ts.c b/drivers/mfd/ucb1x00-ts.c
index ec6ffb6e287d..742d0c7bbbc2 100644
--- a/drivers/mfd/ucb1x00-ts.c
+++ b/drivers/mfd/ucb1x00-ts.c
@@ -363,6 +363,7 @@ static int ucb1x00_ts_add(struct ucb1x00_dev *dev)
363 idev->id.product = ts->ucb->id; 363 idev->id.product = ts->ucb->id;
364 idev->open = ucb1x00_ts_open; 364 idev->open = ucb1x00_ts_open;
365 idev->close = ucb1x00_ts_close; 365 idev->close = ucb1x00_ts_close;
366 idev->dev.parent = &ts->ucb->dev;
366 367
367 idev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY); 368 idev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY);
368 idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH); 369 idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);