Re: [PATCH 07/10] rust: pci: fix docs related to missing Markdown code spans
From: Benno Lossin
Date: Mon Mar 24 2025 - 18:54:11 EST
On Mon Mar 24, 2025 at 10:03 PM CET, Miguel Ojeda wrote:
> diff --git a/rust/kernel/pci.rs b/rust/kernel/pci.rs
> index f7b2743828ae..99413607c2b6 100644
> --- a/rust/kernel/pci.rs
> +++ b/rust/kernel/pci.rs
> @@ -115,7 +115,9 @@ macro_rules! module_pci_driver {
> };
> }
>
> -/// Abstraction for bindings::pci_device_id.
> +/// Abstraction for the PCI device ID structure ([`pci_device_id`]).
Wouldn't "([`struct pci_device_id`])" make more sense?
---
Cheers,
Benno
> +///
> +/// [`pci_device_id`]: https://docs.kernel.org/PCI/pci.html#c.pci_device_id
> #[repr(transparent)]
> #[derive(Clone, Copy)]
> pub struct DeviceId(bindings::pci_device_id);