diff options
| author | John Hubbard <jhubbard@nvidia.com> | 2026-09-29 20:41:34 -0700 |
|---|---|---|
| committer | Alexandre Courbot <acourbot@nvidia.com> | 2026-10-02 15:30:52 +0900 |
| commit | 38c9764d330dfe1d59009179904e313b0923f7b4 (patch) | |
| tree | 12a933ccb60866d03534457492eec19e1b4d46fb /tools/lib/python | |
| parent | c9ca2e379463751e267cb2bf1f7cad0b8be1cfe6 (diff) | |
rust: pci: declare IrqType and IrqTypes with impl_flags
The kernel provides impl_flags! for declaring a bitmask type alongside
the enum of its individual flags, generating the bit operators and the
containment queries.
IrqTypes open-coded that pattern with a with() builder, so a caller
naming two interrupt types chained two calls onto IrqTypes::default().
Declare both types through impl_flags!, so the same set reads as
IrqType::Msi | IrqType::MsiX.
Suggested-by: Gary Guo <gary@garyguo.net>
Signed-off-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Alexandre Courbot <acourbot@nvidia.com>
Acked-by: Danilo Krummrich <dakr@kernel.org>
Link: https://patch.msgid.link/20260930034148.590687-2-jhubbard@nvidia.com
Signed-off-by: Alexandre Courbot <acourbot@nvidia.com>
Diffstat (limited to 'tools/lib/python')
0 files changed, 0 insertions, 0 deletions
