Skip to content

Commit 58ff9c5

Browse files
bjorn-helgaasLorenzo Pieralisi
authored andcommitted
PCI: Rename PCI_IRQ_LEGACY to PCI_IRQ_INTX
Rename PCI_IRQ_LEGACY to PCI_IRQ_INTX to be more explicit about the type of IRQ being referenced as well as to match the PCI specifications terms. Redefine PCI_IRQ_LEGACY as an alias to PCI_IRQ_INTX to avoid the need for doing the renaming tree-wide. New drivers and new code should now prefer using PCI_IRQ_INTX instead of PCI_IRQ_LEGACY. Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Bjorn Helgaas <[email protected]> Signed-off-by: Damien Le Moal <[email protected]> Signed-off-by: Lorenzo Pieralisi <[email protected]> Reviewed-by: Yoshihiro Shimoda <[email protected]> Reviewed-by: Serge Semin <[email protected]> Reviewed-by: Christoph Hellwig <[email protected]> Acked-by: Manivannan Sadhasivam <[email protected]>
1 parent b85ea95 commit 58ff9c5

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

include/linux/pci.h

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1073,11 +1073,13 @@ enum {
10731073
PCI_SCAN_ALL_PCIE_DEVS = 0x00000040, /* Scan all, not just dev 0 */
10741074
};
10751075

1076-
#define PCI_IRQ_LEGACY (1 << 0) /* Allow legacy interrupts */
1076+
#define PCI_IRQ_INTX (1 << 0) /* Allow INTx interrupts */
10771077
#define PCI_IRQ_MSI (1 << 1) /* Allow MSI interrupts */
10781078
#define PCI_IRQ_MSIX (1 << 2) /* Allow MSI-X interrupts */
10791079
#define PCI_IRQ_AFFINITY (1 << 3) /* Auto-assign affinity */
10801080

1081+
#define PCI_IRQ_LEGACY PCI_IRQ_INTX /* Deprecated! Use PCI_IRQ_INTX */
1082+
10811083
/* These external functions are only available when PCI support is enabled */
10821084
#ifdef CONFIG_PCI
10831085

0 commit comments

Comments
 (0)