mirror of
https://github.com/torvalds/linux
synced 2024-11-05 18:23:50 +00:00
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>
This commit is contained in:
parent
abe06082d0
commit
945f6310d3
1 changed files with 1 additions and 0 deletions
|
@ -363,6 +363,7 @@ static int ucb1x00_ts_add(struct ucb1x00_dev *dev)
|
||||||
idev->id.product = ts->ucb->id;
|
idev->id.product = ts->ucb->id;
|
||||||
idev->open = ucb1x00_ts_open;
|
idev->open = ucb1x00_ts_open;
|
||||||
idev->close = ucb1x00_ts_close;
|
idev->close = ucb1x00_ts_close;
|
||||||
|
idev->dev.parent = &ts->ucb->dev;
|
||||||
|
|
||||||
idev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY);
|
idev->evbit[0] = BIT_MASK(EV_ABS) | BIT_MASK(EV_KEY);
|
||||||
idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
|
idev->keybit[BIT_WORD(BTN_TOUCH)] = BIT_MASK(BTN_TOUCH);
|
||||||
|
|
Loading…
Reference in a new issue