pci: Rename GRUB_PCI_CLASS_*

Glenn suggested to rename the existing PCI_CLASS defines to have
explicit class and subclass names.

Suggested-by: Glenn Washburn <development@efficientek.com>
Signed-off-by: Peter Zijlstra (Intel) <peterz@infradead.org>
Reviewed-by: Daniel Kiper <daniel.kiper@oracle.com>
This commit is contained in:
Peter Zijlstra (Intel) authored and Daniel Kiper committed 2023-05-25 16:47:59 +02:00
1 parent 8eb3d4df3f
commit caf11e803c
7 files changed
+9 -9

No files matched your search

+1 -1
View File
@@ -100,7 +100,7 @@ find_card (grub_pci_device_t dev, grub_pci_id_t pciid, void *data)
addr = grub_pci_make_address (dev, GRUB_PCI_REG_CLASS);
subclass = (grub_pci_read (addr) >> 16) & 0xffff;
if (subclass != GRUB_PCI_CLASS_SUBCLASS_VGA)
if (subclass != GRUB_PCI_CLASS_DISPLAY_VGA)
return 0;
/* Enable MEM address spaces */