diff options
| author | Julia Lawall <Julia.Lawall@inria.fr> | 2026-08-27 13:29:49 +0200 |
|---|---|---|
| committer | Jiri Kosina <jkosina@suse.com> | 2026-09-11 16:52:18 +0200 |
| commit | 31fe2cb51133f00e1138c617fef8ee808a37714d (patch) | |
| tree | 6b8b0c9446b8cb530a78419ec35d542e5a8207cc /tools/perf/scripts/python/bin | |
| parent | d3aba3442798ce4a4c8ce3104d7b286d61e605f9 (diff) | |
| download | linux-next-31fe2cb51133f00e1138c617fef8ee808a37714d.tar.gz linux-next-31fe2cb51133f00e1138c617fef8ee808a37714d.zip | |
HID: fix semantic patch and improve its performance
Replace "expression" with "identifier" in the declaration of hdev.
This is necessary because hdev is used as the name of a function
parameter.
Move the two uses of @p2 to the relevant function names.
Convert <... ...>, meaning that the contained pattern is optional,
to use ..., when any, and exists. This requires that the function
contain calls to hid_hw_start, etc, which reduces the set of files
that are considered for matching against this pattern.
Reported-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Julia Lawall <Julia.Lawall@inria.fr>
Signed-off-by: Jiri Kosina <jkosina@suse.com>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
