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)
commit1950f462916edc9581168ca8d5882a8101e8bbcf
tree866de4ed3a30a68635f0d49b433c82ea175df50b
parent77ae0d8e401f083ca69c202502da4fc0e38cb1b7
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