Adjust the nested namespace formatting in PCI files to use the nicer and more consistent C++17 style.
@@ -14,9 +14,7 @@
#include <Kernel/Debug.h>
#include <Kernel/PhysicalAddress.h>
-namespace Kernel {
-
-namespace PCI {
+namespace Kernel::PCI {
enum class HeaderType {
Device = 0,
@@ -293,7 +291,6 @@ private:
class Domain;
class Device;
-}
}
@@ -8,8 +8,7 @@
#include <Kernel/Bus/PCI/API.h>
#include <Kernel/Bus/PCI/Device.h>
Device::Device(Address address)
: m_pci_address(address)
@@ -56,4 +55,3 @@ void Device::disable_extended_message_signalled_interrupts()
@@ -9,8 +9,7 @@
#include <AK/Types.h>
#include <Kernel/Bus/PCI/Definitions.h>
class Device {
public:
@@ -37,4 +36,3 @@ private:
};
@@ -14,8 +14,7 @@
#include <Kernel/Panic.h>
#include <Kernel/Sections.h>
READONLY_AFTER_INIT bool g_pci_access_io_probe_failed;
READONLY_AFTER_INIT bool g_pci_access_is_disabled_from_commandline;
@@ -83,4 +82,3 @@ UNMAP_AFTER_INIT bool test_pci_io()
@@ -6,8 +6,7 @@
#pragma once
extern bool g_pci_access_io_probe_failed;
extern bool g_pci_access_is_disabled_from_commandline;
@@ -15,4 +14,3 @@ extern bool g_pci_access_is_disabled_from_commandline;
void initialize();