Commit b1060ea4 authored by Mario Limonciello's avatar Mario Limonciello Committed by Bjorn Helgaas
Browse files

vga_switcheroo: Use pci_is_display()



The inline pci_is_display() helper does the same thing.  Use it.

Suggested-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Signed-off-by: default avatarMario Limonciello <mario.limonciello@amd.com>
Signed-off-by: default avatarBjorn Helgaas <bhelgaas@google.com>
Reviewed-by: default avatarDaniel Dadap <ddadap@nvidia.com>
Reviewed-by: default avatarSimona Vetter <simona.vetter@ffwll.ch>
Link: https://patch.msgid.link/20250717173812.3633478-4-superm1@kernel.org
parent a7feca7c
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -437,7 +437,7 @@ find_active_client(struct list_head *head)
 */
bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev)
{
	if ((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
	if (pci_is_display(pdev)) {
		/*
		 * apple-gmux is needed on pre-retina MacBook Pro
		 * to probe the panel if pdev is the inactive GPU.