aboutsummaryrefslogtreecommitdiff
path: root/module/ddr_phy500
diff options
context:
space:
mode:
authorChris Kay <chris.kay@arm.com>2020-03-09 16:35:12 +0000
committerjimqui01 <54316584+jimqui01@users.noreply.github.com>2020-03-24 17:44:33 +0000
commitf21bb9862ef6753577baa1b6eab62179d5c7fff4 (patch)
tree5340894eac85f9fd49955224338710fd116e4ba9 /module/ddr_phy500
parent2045eb2c129f173b4ab5c36ca37ae5109e92c007 (diff)
misc: Clean up include directives
This commit cleans up include directives across the project to reduce the number of implicit transitive dependencies in preparation for mass header changes in the logging patches later on. These changes were made using two tools: clang-include-fixer and include-what-you-use, which identify and remove headers that are unnecessary, and insert headers which are used but not referenced. Some manual tweaking was involved to handle special cases, like #ifdef'd includes. Includes have also been reordered and categorized according to their project locality, and non-module includes now use quotes rather than angle brackets. Change-Id: Id39dc473f44b73cb98f3b8949f9e768fd2ace6cd Signed-off-by: Chris Kay <chris.kay@arm.com>
Diffstat (limited to 'module/ddr_phy500')
-rw-r--r--module/ddr_phy500/include/mod_ddr_phy500.h10
-rw-r--r--module/ddr_phy500/src/mod_ddr_phy500.c19
2 files changed, 17 insertions, 12 deletions
diff --git a/module/ddr_phy500/include/mod_ddr_phy500.h b/module/ddr_phy500/include/mod_ddr_phy500.h
index ae8ed035..95363c91 100644
--- a/module/ddr_phy500/include/mod_ddr_phy500.h
+++ b/module/ddr_phy500/include/mod_ddr_phy500.h
@@ -1,4 +1,4 @@
- /*
+/*
* Arm SCP/MCP Software
* Copyright (c) 2015-2020, Arm Limited and Contributors. All rights reserved.
*
@@ -10,12 +10,14 @@
#ifndef MOD_DDR_PHY500_H
#define MOD_DDR_PHY500_H
-#include <stdbool.h>
-#include <stdint.h>
+#include <mod_log.h>
+
#include <fwk_id.h>
#include <fwk_macros.h>
#include <fwk_module.h>
-#include <mod_log.h>
+
+#include <stdbool.h>
+#include <stdint.h>
/*!
* \addtogroup GroupModules Modules
diff --git a/module/ddr_phy500/src/mod_ddr_phy500.c b/module/ddr_phy500/src/mod_ddr_phy500.c
index e79a4732..9ad268cd 100644
--- a/module/ddr_phy500/src/mod_ddr_phy500.c
+++ b/module/ddr_phy500/src/mod_ddr_phy500.c
@@ -8,22 +8,25 @@
* DDR-PHY500 driver
*/
-#include <fwk_assert.h>
-#include <fwk_id.h>
-#include <fwk_mm.h>
-#include <fwk_module.h>
-#include <fwk_module_idx.h>
-#include <fwk_status.h>
#include <mod_ddr_phy500.h>
+#include <mod_log.h>
#ifdef BUILD_HAS_MOD_DMC500
- #include <mod_dmc500.h>
+# include <mod_dmc500.h>
#endif
#ifdef BUILD_HAS_MOD_DMC620
- #include <mod_dmc620.h>
+# include <mod_dmc620.h>
#endif
+#include <fwk_assert.h>
+#include <fwk_id.h>
+#include <fwk_module.h>
+#include <fwk_module_idx.h>
+#include <fwk_status.h>
+
+#include <stddef.h>
+
static struct mod_log_api *log_api;
/*