Expose `PCI_VENDOR_ID_QEMU` as `Vendor::QEMU`, so Rust drivers can match
QEMU's 0x1234 devices without constructing a `Vendor` from a raw ID.

Suggested-by: Alice Ryhl <[email protected]>
Suggested-by: John Hubbard <[email protected]>
Signed-off-by: Maurice Hieronymus <[email protected]>
---
 rust/kernel/pci/id.rs | 1 +
 1 file changed, 1 insertion(+)

diff --git a/rust/kernel/pci/id.rs b/rust/kernel/pci/id.rs
index dbaf301666e7..d17706485402 100644
--- a/rust/kernel/pci/id.rs
+++ b/rust/kernel/pci/id.rs
@@ -418,6 +418,7 @@ fn fmt(&self, f: &mut fmt::Formatter<'_>) -> fmt::Result {
     CYCLADES                 = bindings::PCI_VENDOR_ID_CYCLADES,               
  // 0x120e
     O2                       = bindings::PCI_VENDOR_ID_O2,                     
  // 0x1217
     THREEDX                  = bindings::PCI_VENDOR_ID_3DFX,                   
  // 0x121a
+    QEMU                     = bindings::PCI_VENDOR_ID_QEMU,                   
  // 0x1234
     AVM                      = bindings::PCI_VENDOR_ID_AVM,                    
  // 0x1244
     STALLION                 = bindings::PCI_VENDOR_ID_STALLION,               
  // 0x124d
     AT                       = bindings::PCI_VENDOR_ID_AT,                     
  // 0x1259

-- 
2.54.0

Reply via email to