]> git.baikalelectronics.ru Git - kernel.git/commit
HID: core: simplify active collection tracking
authorPhilipp Zabel <philipp.zabel@gmail.com>
Mon, 14 Jan 2019 07:19:22 +0000 (08:19 +0100)
committerBenjamin Tissoires <benjamin.tissoires@redhat.com>
Wed, 16 Jan 2019 13:29:48 +0000 (14:29 +0100)
commit631f54cbe6b19cc6865f64a5a37925dea6c5ecbf
tree866de4ed3a30a68635f0d49b433c82ea175df50b
parentc19cbc58d043b7c6622ce757cf0fc1ede659a569
HID: core: simplify active collection tracking

Manually tracking an active collection to set collection parents is not
necessary, we just have to look one step back into the collection stack
to find the correct parent.

Signed-off-by: Philipp Zabel <philipp.zabel@gmail.com>
Reviewed-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
drivers/hid/hid-core.c
include/linux/hid.h