summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/stackcollapse.py
diff options
context:
space:
mode:
authorGary Guo <gary@garyguo.net>2026-06-29 13:39:38 +0100
committerDanilo Krummrich <dakr@kernel.org>2026-07-30 16:42:34 +0200
commitc7b6e07f83b4710c885d3c9fa8094b11a719a5a0 (patch)
treec2eb4c62e4e92237b42529a77c165154053b47f2 /tools/perf/scripts/python/stackcollapse.py
parent4fcbf7f1e4a439b40426a663a6034b52739671a3 (diff)
rust: usb: use `Option<&IdInfo>` for device ID info
It is possible that ID without driver_data will be passed to the driver, e.g. `new_id` is used to dynamically create a new ID without data. Therefore, the driver must be able to handle the case where `driver_data` is 0. Thus, update the `probe` functions to get `Option`. The current code cannot tell if the info does not exist or is the first entry; however this will be achievable once the code is updated to use a `&'static IdInfo` pointer instead of indices. Signed-off-by: Gary Guo <gary@garyguo.net> Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Link: https://patch.msgid.link/20260629-id_info-v2-4-56fccbe9c5ef@garyguo.net Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/stackcollapse.py')
0 files changed, 0 insertions, 0 deletions