diff options
| author | Mario Limonciello <[email protected]> | 2025-07-17 17:38:06 +0000 |
|---|---|---|
| committer | Bjorn Helgaas <[email protected]> | 2025-07-17 20:30:13 +0000 |
| commit | b1060ea44a1f846203ca3ef90389cd0e4f46bc8b (patch) | |
| tree | 5fe58ac163367770d20cf4757ba61c15c25f3523 | |
| parent | vfio/pci: Use pci_is_display() (diff) | |
| download | kernel-b1060ea44a1f846203ca3ef90389cd0e4f46bc8b.tar.gz kernel-b1060ea44a1f846203ca3ef90389cd0e4f46bc8b.zip | |
vga_switcheroo: 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: Daniel Dadap <[email protected]>
Reviewed-by: Simona Vetter <[email protected]>
Link: https://patch.msgid.link/[email protected]
| -rw-r--r-- | drivers/gpu/vga/vga_switcheroo.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/gpu/vga/vga_switcheroo.c b/drivers/gpu/vga/vga_switcheroo.c index 18f2c92beff8..68e45a26e85f 100644 --- a/drivers/gpu/vga/vga_switcheroo.c +++ b/drivers/gpu/vga/vga_switcheroo.c @@ -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. |
