From fa29d6e9b9a9cff5d22f47f1b59403da506d0256 Mon Sep 17 00:00:00 2001 From: apio Date: Wed, 25 Jan 2023 20:58:59 +0100 Subject: [PATCH] kernel: Rename PCI::callback_t to PCI::Callback --- kernel/src/arch/PCI.cpp | 4 ++-- kernel/src/arch/PCI.h | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/kernel/src/arch/PCI.cpp b/kernel/src/arch/PCI.cpp index 0ac20bbc..b1e89f71 100644 --- a/kernel/src/arch/PCI.cpp +++ b/kernel/src/arch/PCI.cpp @@ -3,7 +3,7 @@ struct ScanInfo { - PCI::callback_t callback; + PCI::Callback callback; PCI::Match match; }; @@ -85,7 +85,7 @@ namespace PCI for (u32 slot = 0; slot < 32; slot++) { scan_slot(bus, slot, info); } } - void scan(callback_t callback, Match match) + void scan(Callback callback, Match match) { u8 header_type = read8({ 0, 0, 0 }, Field::HeaderType); diff --git a/kernel/src/arch/PCI.h b/kernel/src/arch/PCI.h index 99706db9..9157c4aa 100644 --- a/kernel/src/arch/PCI.h +++ b/kernel/src/arch/PCI.h @@ -47,7 +47,7 @@ namespace PCI Address address; }; - typedef void (*callback_t)(const Device&); + typedef void (*Callback)(const Device&); struct Match { @@ -69,5 +69,5 @@ namespace PCI Device::ID read_id(const Device::Address& address); Device::Type read_type(const Device::Address& address); - void scan(callback_t callback, Match match); + void scan(Callback callback, Match match); }