summaryrefslogtreecommitdiff
path: root/Kernel/Graphics/VirtIOGPU
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2021-09-23 09:14:51 +0300
committerAndreas Kling <kling@serenityos.org>2021-09-29 11:24:33 +0200
commitda327746a2702bd40ae6fa79017850ed357f5c1f (patch)
tree2c270fd138684e6713105c9c1eb93941cea256ec /Kernel/Graphics/VirtIOGPU
parent82bb08a15cbe447b5b0deeac16cccc22bf1c1c57 (diff)
downloadserenity-da327746a2702bd40ae6fa79017850ed357f5c1f.zip
Kernel: Rename two PCI components
Rename ID => HardwareID, and PhysicalID => DeviceIdentifier. This change merely does that to clarify what these objects really are.
Diffstat (limited to 'Kernel/Graphics/VirtIOGPU')
-rw-r--r--Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp b/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp
index f2d1e74757..6d8ab929ca 100644
--- a/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp
+++ b/Kernel/Graphics/VirtIOGPU/GraphicsAdapter.cpp
@@ -15,7 +15,7 @@ namespace Kernel::Graphics::VirtIOGPU {
NonnullRefPtr<GraphicsAdapter> GraphicsAdapter::initialize(PCI::Address base_address)
{
- VERIFY(PCI::get_id(base_address).vendor_id == PCI::VendorID::VirtIO);
+ VERIFY(PCI::get_hardware_id(base_address).vendor_id == PCI::VendorID::VirtIO);
return adopt_ref(*new GraphicsAdapter(base_address));
}