From b88ab14ba38d0eb2123975ed78c8eb04ba13cf72 Mon Sep 17 00:00:00 2001 From: Michael Brown Date: Fri, 8 May 2015 14:54:12 +0100 Subject: [pci] Provide PCI_CLASS() to calculate a scalar PCI class value Rename PCI_CLASS() (which constructs a struct pci_class_id) to PCI_CLASS_ID(), and provide PCI_CLASS() as a macro which constructs the 24-bit scalar value of a PCI class code. Signed-off-by: Michael Brown --- src/drivers/usb/ehci.c | 4 ++-- src/drivers/usb/xhci.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'src/drivers/usb') diff --git a/src/drivers/usb/ehci.c b/src/drivers/usb/ehci.c index e33b0e19f..653e72c13 100644 --- a/src/drivers/usb/ehci.c +++ b/src/drivers/usb/ehci.c @@ -1877,8 +1877,8 @@ static struct pci_device_id ehci_ids[] = { struct pci_driver ehci_driver __pci_driver = { .ids = ehci_ids, .id_count = ( sizeof ( ehci_ids ) / sizeof ( ehci_ids[0] ) ), - .class = PCI_CLASS ( PCI_CLASS_SERIAL, PCI_CLASS_SERIAL_USB, - PCI_CLASS_SERIAL_USB_EHCI ), + .class = PCI_CLASS_ID ( PCI_CLASS_SERIAL, PCI_CLASS_SERIAL_USB, + PCI_CLASS_SERIAL_USB_EHCI ), .probe = ehci_probe, .remove = ehci_remove, }; diff --git a/src/drivers/usb/xhci.c b/src/drivers/usb/xhci.c index 831e8e6ef..307a99120 100644 --- a/src/drivers/usb/xhci.c +++ b/src/drivers/usb/xhci.c @@ -3280,8 +3280,8 @@ static struct pci_device_id xhci_ids[] = { struct pci_driver xhci_driver __pci_driver = { .ids = xhci_ids, .id_count = ( sizeof ( xhci_ids ) / sizeof ( xhci_ids[0] ) ), - .class = PCI_CLASS ( PCI_CLASS_SERIAL, PCI_CLASS_SERIAL_USB, - PCI_CLASS_SERIAL_USB_XHCI ), + .class = PCI_CLASS_ID ( PCI_CLASS_SERIAL, PCI_CLASS_SERIAL_USB, + PCI_CLASS_SERIAL_USB_XHCI ), .probe = xhci_probe, .remove = xhci_remove, }; -- cgit v1.2.3-55-g7522