kernel: Rename PCI::callback_t to PCI::Callback
All checks were successful
continuous-integration/drone/push Build is passing

This commit is contained in:
apio 2023-01-25 20:58:59 +01:00
parent 15c89a3592
commit fa29d6e9b9
Signed by: apio
GPG Key ID: B8A7D06E42258954
2 changed files with 4 additions and 4 deletions

View File

@ -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);

View File

@ -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);
}