mirror of
https://github.com/torvalds/linux.git
synced 2026-03-13 21:26:14 +01:00
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
This commit is contained in:
parent
a7feca7c88
commit
b1060ea44a
1 changed files with 1 additions and 1 deletions
|
|
@ -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.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue