PCI: Add pci_is_display() to check if device is a display controller
authorMario Limonciello <mario.limonciello@amd.com>
Thu, 17 Jul 2025 17:38:04 +0000 (12:38 -0500)
committerBjorn Helgaas <bhelgaas@google.com>
Thu, 17 Jul 2025 20:30:05 +0000 (15:30 -0500)
commit76720eed7d18baf51c0f31fe8a3784702f50e3fc
tree9c03aa6ae6656c1c0210f08208020a34ece4ec84
parent19272b37aa4f83ca52bdf9c16d5d81bdd1354494
PCI: Add pci_is_display() to check if device is a display controller

Several places in the kernel do class shifting to match whether a PCI
device is display class.  Add pci_is_display() for those places to use.

Signed-off-by: Mario Limonciello <mario.limonciello@amd.com>
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Reviewed-by: Daniel Dadap <ddadap@nvidia.com>
Reviewed-by: Simona Vetter <simona.vetter@ffwll.ch>
Link: https://patch.msgid.link/20250717173812.3633478-2-superm1@kernel.org
include/linux/pci.h