diff options
| author | Gary Guo <gary@garyguo.net> | 2026-06-29 13:39:36 +0100 |
|---|---|---|
| committer | Danilo Krummrich <dakr@kernel.org> | 2026-07-30 16:42:34 +0200 |
| commit | e49f626ef541c38ab8548d60015872c700711884 (patch) | |
| tree | 4128cfd7fc231c812e3d103597bc9afc571a3581 /tools/perf/scripts/python/task-analyzer.py | |
| parent | 3474bbba4ddd1ffaad2fa1d5e4a4a06e55ac45c6 (diff) | |
rust: driver: simplify `IdArray::new_without_index`
This method can very easily construct the `IdArray` on its own without
delegating to `Self::build`. Doing so also simplifies the phy device table
macro because it does not need to construct tuples anymore.
This also allows simplification of `new` and `build` which removes the
`unsafe`.
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-2-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
