1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-05-31 07:48:11 +00:00

Kernel: Use C++17 namespace style for nested PCI namespace

Adjust the nested namespace formatting in PCI files to use the nicer
and more consistent C++17 style.
This commit is contained in:
b14ckcat 2022-04-25 10:32:09 -04:00 committed by Linus Groh
parent d8d7b5d82c
commit c65a6b6b22
5 changed files with 5 additions and 16 deletions

View file

@ -14,9 +14,7 @@
#include <Kernel/Debug.h> #include <Kernel/Debug.h>
#include <Kernel/PhysicalAddress.h> #include <Kernel/PhysicalAddress.h>
namespace Kernel { namespace Kernel::PCI {
namespace PCI {
enum class HeaderType { enum class HeaderType {
Device = 0, Device = 0,
@ -293,7 +291,6 @@ private:
class Domain; class Domain;
class Device; class Device;
}
} }

View file

@ -8,8 +8,7 @@
#include <Kernel/Bus/PCI/API.h> #include <Kernel/Bus/PCI/API.h>
#include <Kernel/Bus/PCI/Device.h> #include <Kernel/Bus/PCI/Device.h>
namespace Kernel { namespace Kernel::PCI {
namespace PCI {
Device::Device(Address address) Device::Device(Address address)
: m_pci_address(address) : m_pci_address(address)
@ -56,4 +55,3 @@ void Device::disable_extended_message_signalled_interrupts()
} }
} }
}

View file

@ -9,8 +9,7 @@
#include <AK/Types.h> #include <AK/Types.h>
#include <Kernel/Bus/PCI/Definitions.h> #include <Kernel/Bus/PCI/Definitions.h>
namespace Kernel { namespace Kernel::PCI {
namespace PCI {
class Device { class Device {
public: public:
@ -37,4 +36,3 @@ private:
}; };
} }
}

View file

@ -14,8 +14,7 @@
#include <Kernel/Panic.h> #include <Kernel/Panic.h>
#include <Kernel/Sections.h> #include <Kernel/Sections.h>
namespace Kernel { namespace Kernel::PCI {
namespace PCI {
READONLY_AFTER_INIT bool g_pci_access_io_probe_failed; READONLY_AFTER_INIT bool g_pci_access_io_probe_failed;
READONLY_AFTER_INIT bool g_pci_access_is_disabled_from_commandline; READONLY_AFTER_INIT bool g_pci_access_is_disabled_from_commandline;
@ -83,4 +82,3 @@ UNMAP_AFTER_INIT bool test_pci_io()
} }
} }
}

View file

@ -6,8 +6,7 @@
#pragma once #pragma once
namespace Kernel { namespace Kernel::PCI {
namespace PCI {
extern bool g_pci_access_io_probe_failed; extern bool g_pci_access_io_probe_failed;
extern bool g_pci_access_is_disabled_from_commandline; extern bool g_pci_access_is_disabled_from_commandline;
@ -15,4 +14,3 @@ extern bool g_pci_access_is_disabled_from_commandline;
void initialize(); void initialize();
} }
}