]> 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)
commit573bbfab6d74908766e6419d452bef68d67aab1b
tree866de4ed3a30a68635f0d49b433c82ea175df50b
parent61ec2f7764fa0e800e4edce8d2607822a294fbe1
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