diff options
author | Philipp Zabel <philipp.zabel@gmail.com> | 2019-01-14 10:19:22 +0300 |
---|---|---|
committer | Benjamin Tissoires <benjamin.tissoires@redhat.com> | 2019-01-16 16:29:48 +0300 |
commit | 1950f462916edc9581168ca8d5882a8101e8bbcf (patch) | |
tree | 866de4ed3a30a68635f0d49b433c82ea175df50b /include/linux/hid.h | |
parent | 77ae0d8e401f083ca69c202502da4fc0e38cb1b7 (diff) | |
download | linux-1950f462916edc9581168ca8d5882a8101e8bbcf.tar.xz |
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>
Diffstat (limited to 'include/linux/hid.h')
-rw-r--r-- | include/linux/hid.h | 1 |
1 files changed, 0 insertions, 1 deletions
diff --git a/include/linux/hid.h b/include/linux/hid.h index 992bbb7196df..f9707d1dcb58 100644 --- a/include/linux/hid.h +++ b/include/linux/hid.h @@ -658,7 +658,6 @@ struct hid_parser { unsigned int *collection_stack; unsigned int collection_stack_ptr; unsigned int collection_stack_size; - int active_collection_idx; /* device->collection */ struct hid_device *device; unsigned int scan_flags; }; |