PCI/MSI: Fix cut-and-paste errors in documentation
Function pci_enable_msi_range() is used in examples where pci_enable_msix_range() should have been used instead. Reported-by: Bjorn Helgaas <bhelgaas@google.com> Signed-off-by: Alexander Gordeev <agordeev@redhat.com> Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
This commit is contained in:
parent
7918b2dc66
commit
13f9653dab
|
@ -274,7 +274,7 @@ possible, likely up to the limit returned by pci_msix_vec_count() function:
|
||||||
|
|
||||||
static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec)
|
static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec)
|
||||||
{
|
{
|
||||||
return pci_enable_msi_range(adapter->pdev, adapter->msix_entries,
|
return pci_enable_msix_range(adapter->pdev, adapter->msix_entries,
|
||||||
1, nvec);
|
1, nvec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -286,7 +286,7 @@ In this case the function could look like this:
|
||||||
|
|
||||||
static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec)
|
static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec)
|
||||||
{
|
{
|
||||||
return pci_enable_msi_range(adapter->pdev, adapter->msix_entries,
|
return pci_enable_msix_range(adapter->pdev, adapter->msix_entries,
|
||||||
FOO_DRIVER_MINIMUM_NVEC, nvec);
|
FOO_DRIVER_MINIMUM_NVEC, nvec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -299,7 +299,7 @@ parameters:
|
||||||
|
|
||||||
static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec)
|
static int foo_driver_enable_msix(struct foo_adapter *adapter, int nvec)
|
||||||
{
|
{
|
||||||
return pci_enable_msi_range(adapter->pdev, adapter->msix_entries,
|
return pci_enable_msix_range(adapter->pdev, adapter->msix_entries,
|
||||||
nvec, nvec);
|
nvec, nvec);
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue