mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git/
synced 2026-11-04 19:54:59 +00:00
Change Device::vendor_id() to return a Vendor type, and change DeviceId::from_id() to accept a Vendor type. Use the new pci::Vendor in the various Rust for Linux callers who were previously using bindings::PCI_VENDOR_ID_*. Doing so also allows removing "use kernel::bindings" entirely from most of the affected files here. Also, mark vendor_id() as inline. Cc: Danilo Krummrich <dakr@kernel.org> Cc: Elle Rhumsaa <elle@weathered-steel.dev> Reviewed-by: Alexandre Courbot <acourbot@nvidia.com> Signed-off-by: John Hubbard <jhubbard@nvidia.com> Link: https://lore.kernel.org/r/20250829223632.144030-6-jhubbard@nvidia.com [ Replace "as a validated vendor" with "as [`Vendor`]". - Danilo ] Signed-off-by: Danilo Krummrich <dakr@kernel.org> |
History
|
|
|---|---|---|
| .. | ||
| hostprogs | ||
| Kconfig | ||
| Makefile | ||
| rust_configfs.rs | ||
| rust_dma.rs | ||
| rust_driver_auxiliary.rs | ||
| rust_driver_faux.rs | ||
| rust_driver_pci.rs | ||
| rust_driver_platform.rs | ||
| rust_minimal.rs | ||
| rust_misc_device.rs | ||
| rust_print_events.c | ||
| rust_print_main.rs | ||