mirror of
https://github.com/adulau/aha.git
synced 2025-01-01 13:46:24 +00:00
Input: ALPS - put secondary device in proper place in sysfs
Secondary input device did not have parent set up causing it to appear in the root of sysfs device hierarchy. Signed-off-by: Dmitry Torokhov <dtor@mail.ru>
This commit is contained in:
parent
0e1763f530
commit
1db3a3453f
1 changed files with 1 additions and 0 deletions
|
@ -483,6 +483,7 @@ int alps_init(struct psmouse *psmouse)
|
|||
dev2->id.vendor = 0x0002;
|
||||
dev2->id.product = PSMOUSE_ALPS;
|
||||
dev2->id.version = 0x0000;
|
||||
dev2->dev.parent = &psmouse->ps2dev.serio->dev;
|
||||
|
||||
dev2->evbit[0] = BIT_MASK(EV_KEY) | BIT_MASK(EV_REL);
|
||||
dev2->relbit[BIT_WORD(REL_X)] |= BIT_MASK(REL_X) | BIT_MASK(REL_Y);
|
||||
|
|
Loading…
Reference in a new issue