diff options
author | 2022-02-03 15:32:16 +0100 | |
---|---|---|
committer | 2022-03-01 15:46:02 +0100 | |
commit | 74acc277b65219002bb103e51e461c2934563ada (patch) | |
tree | 121092be9ddd649c3942c2873bbb9ffd45672ef1 /tools/perf/util/scripting-engines/trace-event-python.c | |
parent | HID: core: statically allocate read buffers (diff) | |
download | wireguard-linux-74acc277b65219002bb103e51e461c2934563ada.tar.xz wireguard-linux-74acc277b65219002bb103e51e461c2934563ada.zip |
HID: core: de-duplicate some code in hid_input_field()
I had to go twice through the history to get a grasp at this code.
De-duplicate the various tests in one common helper to make it
more explicit.
Note that the `HID_UP_KEYBOARD + 1` condition is tested through
https://gitlab.freedesktop.org/libevdev/hid-tools/-/merge_requests/121
Signed-off-by: Benjamin Tissoires <benjamin.tissoires@redhat.com>
Reviewed-by: Ping Cheng <ping.cheng@wacom.com>
Acked-by: Peter Hutterer <peter.hutterer@who-t.net>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
Diffstat (limited to 'tools/perf/util/scripting-engines/trace-event-python.c')
0 files changed, 0 insertions, 0 deletions