Why
This new API is used by the amdgpu DRM driver is Linux 6.7.
How
This is the same as pci_get_class() except that it searches a PCI device matching the base class only; the subclass is ignored.
This is part of the update of DRM drivers to Linux 6.7.
Sponsored by: The FreeBSD Foundation