PCI/VGA: Use pci_is_vga() to identify VGA devices
authorSui Jingfeng <suijingfeng@loongson.cn>
Wed, 30 Aug 2023 11:15:29 +0000 (19:15 +0800)
committerBjorn Helgaas <bhelgaas@google.com>
Fri, 6 Oct 2023 22:13:37 +0000 (17:13 -0500)
commit655e6fe178960c50bfbb0bfe3c4a12c82b1ad918
tree0e6274a34b0e779701b7f17b44c74bc46dd9cbbd
parent7e845ecb2fbfa1bf800e703df29ee2e06592c2a0
PCI/VGA: Use pci_is_vga() to identify VGA devices

Use pci_is_vga() to identify VGA devices, so the arbiter will handle old
PCI_CLASS_NOT_DEFINED_VGA (0x0001) devices as well as the
PCI_CLASS_DISPLAY_VGA (0x0300) devices it previously handled.

Link: https://lore.kernel.org/r/20230830111532.444535-3-sui.jingfeng@linux.dev
Signed-off-by: Sui Jingfeng <suijingfeng@loongson.cn>
[bhelgaas: commit log, split functional change from optimization]
Signed-off-by: Bjorn Helgaas <bhelgaas@google.com>
Cc: "Maciej W. Rozycki" <macro@orcam.me.uk>
drivers/pci/vgaarb.c