diff options
| author | Gary Guo <gary@garyguo.net> | 2026-06-29 13:39:37 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-07-30 16:42:34 +0200 |
| commit | 4fcbf7f1e4a439b40426a663a6034b52739671a3 (patch) | |
| tree | 074b7319b70b1ebd37729f873b3b8ecaed22f47f /tools/perf/scripts/python/task-analyzer.py | |
| parent | e49f626ef541c38ab8548d60015872c700711884 (diff) | |
rust: pci: use `Option<&IdInfo>` for device ID info
It is possible that `pci_device_id_any` will be passed to the driver, e.g.
`driver_override` is used on the device. 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-3-56fccbe9c5ef@garyguo.net
Signed-off-by: Danilo Krummrich <dakr@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/task-analyzer.py')
0 files changed, 0 insertions, 0 deletions
