diff options
| author | Mario Limonciello <[email protected]> | 2025-07-17 17:38:07 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2025-07-17 20:30:13 +0000 |
| commit | 75952c497550fd34d60b4e45aee15249d91263fa (patch) | |
| tree | 15342931e4463785e96d713f117f0ce7ebb0a05c | |
| parent | vga_switcheroo: Use pci_is_display() (diff) | |
| download | kernel-75952c497550fd34d60b4e45aee15249d91263fa.tar.gz kernel-75952c497550fd34d60b4e45aee15249d91263fa.zip | |
iommu/vt-d: Use pci_is_display()
The inline pci_is_display() helper does the same thing. Use it.
Suggested-by: Bjorn Helgaas <[email protected]>
Signed-off-by: Mario Limonciello <[email protected]>
Signed-off-by: Bjorn Helgaas <[email protected]>
Reviewed-by: Lu Baolu <[email protected]>
Reviewed-by: Daniel Dadap <[email protected]>
Reviewed-by: Simona Vetter <[email protected]>
Link: https://patch.msgid.link/[email protected]
| -rw-r--r-- | drivers/iommu/intel/iommu.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/iommu/intel/iommu.c b/drivers/iommu/intel/iommu.c index 7aa3932251b2..17267cd476ce 100644 --- a/drivers/iommu/intel/iommu.c +++ b/drivers/iommu/intel/iommu.c @@ -34,7 +34,7 @@ #define ROOT_SIZE VTD_PAGE_SIZE #define CONTEXT_SIZE VTD_PAGE_SIZE -#define IS_GFX_DEVICE(pdev) ((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY) +#define IS_GFX_DEVICE(pdev) pci_is_display(pdev) #define IS_USB_DEVICE(pdev) ((pdev->class >> 8) == PCI_CLASS_SERIAL_USB) #define IS_ISA_DEVICE(pdev) ((pdev->class >> 8) == PCI_CLASS_BRIDGE_ISA) #define IS_AZALIA(pdev) ((pdev)->vendor == 0x8086 && (pdev)->device == 0x3a3e) |
