Skip to content

Commit b1060ea

Browse files
superm1bjorn-helgaas
authored andcommitted
vga_switcheroo: Use pci_is_display()
The inline pci_is_display() helper does the same thing. Use it. Suggested-by: Bjorn Helgaas <bhelgaas@google.com> 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-4-superm1@kernel.org
1 parent a7feca7 commit b1060ea

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/vga/vga_switcheroo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -437,7 +437,7 @@ find_active_client(struct list_head *head)
437437
*/
438438
bool vga_switcheroo_client_probe_defer(struct pci_dev *pdev)
439439
{
440-
if ((pdev->class >> 16) == PCI_BASE_CLASS_DISPLAY) {
440+
if (pci_is_display(pdev)) {
441441
/*
442442
* apple-gmux is needed on pre-retina MacBook Pro
443443
* to probe the panel if pdev is the inactive GPU.

0 commit comments

Comments
 (0)