Browse Source

qcacld-3.0: Re-organize header file including structure

Include pld_common.h in pld_internal.h as it uses data structures
defined in pld_common.h.

CRs-Fixed: 1022636
Change-Id: I17f8abfbec08b620be5af677e1599554c5fc7ea6
Yuanyuan Liu 8 years ago
parent
commit
f7aea120bf

+ 0 - 2
core/pld/src/pld_common.c

@@ -43,8 +43,6 @@
 
 #include "pld_pcie.h"
 #include "pld_snoc.h"
-#include "pld_common.h"
-#include "pld_internal.h"
 
 #define PLD_PCIE_REGISTERED BIT(0)
 #define PLD_SNOC_REGISTERED BIT(1)

+ 2 - 0
core/pld/src/pld_internal.h

@@ -28,6 +28,8 @@
 #ifndef __PLD_COMMON_I_H__
 #define __PLD_COMMON_I_H__
 
+#include "pld_common.h"
+
 struct dev_node {
 	struct device *dev;
 	struct list_head list;

+ 0 - 1
core/pld/src/pld_pcie.c

@@ -35,7 +35,6 @@
 #include <net/cnss.h>
 #endif
 
-#include "pld_common.h"
 #include "pld_internal.h"
 
 #ifdef CONFIG_PCI

+ 1 - 1
core/pld/src/pld_pcie.h

@@ -28,7 +28,7 @@
 #ifndef __PLD_PCIE_H__
 #define __PLD_PCIE_H__
 
-#include "pld_common.h"
+#include "pld_internal.h"
 
 #ifndef CONFIG_PCI
 static inline int pld_pcie_register_driver(void)

+ 0 - 1
core/pld/src/pld_snoc.c

@@ -34,7 +34,6 @@
 #include <soc/qcom/icnss.h>
 #endif
 
-#include "pld_common.h"
 #include "pld_internal.h"
 
 #ifdef CONFIG_PLD_SNOC_ICNSS

+ 1 - 1
core/pld/src/pld_snoc.h

@@ -28,7 +28,7 @@
 #ifndef __PLD_SNOC_H__
 #define __PLD_SNOC_H__
 
-#include "pld_common.h"
+#include "pld_internal.h"
 
 #ifndef CONFIG_PLD_SNOC_ICNSS
 static inline int pld_snoc_register_driver(void)