summaryrefslogtreecommitdiff
path: root/mhi
diff options
context:
space:
mode:
authorVictor Hsu <hsuvictor@google.com>2021-11-10 20:57:10 +0800
committerVictor Hsu <hsuvictor@google.com>2021-12-13 13:37:29 +0800
commit5cfb486d3f2b5f46683495ae82c1060da8118be4 (patch)
tree171b6f08e1a88ab4d60fae4b03f9c1e9128fae10 /mhi
parentc972edc5cac0526943caaa390ddd0faf2ecb18db (diff)
downloadcnss2-5cfb486d3f2b5f46683495ae82c1060da8118be4.tar.gz
wcn6740: Change the include path to out-of-kernel tree
Change the include path to make sure to include the correct header files in out-of-kernel tree. Bug: 203725513 Signed-off-by: Victor Hsu <hsuvictor@google.com> Change-Id: Iaff00aca3b1e3faa77ffb54bf7eb59b6ca296c58
Diffstat (limited to 'mhi')
-rw-r--r--mhi/Makefile6
-rw-r--r--mhi/core/boot.c4
-rw-r--r--mhi/core/debugfs.c4
-rw-r--r--mhi/core/init.c4
-rw-r--r--mhi/core/internal.h4
-rw-r--r--mhi/core/main.c4
-rw-r--r--mhi/core/misc.h4
-rw-r--r--mhi/core/pm.c4
8 files changed, 32 insertions, 2 deletions
diff --git a/mhi/Makefile b/mhi/Makefile
index edd806f..e418044 100644
--- a/mhi/Makefile
+++ b/mhi/Makefile
@@ -1,3 +1,5 @@
-ccflags-y += -I$(WLAN_PLATFORM_ROOT)/inc
+# SPDX-License-Identifier: GPL-2.0-only
+
+#ccflags-y += -I$(WLAN_PLATFORM_ROOT)/inc
# core layer
-obj-y += core/
+obj-y += core/ \ No newline at end of file
diff --git a/mhi/core/boot.c b/mhi/core/boot.c
index 39961b8..c623a2e 100644
--- a/mhi/core/boot.c
+++ b/mhi/core/boot.c
@@ -11,7 +11,11 @@
#include <linux/firmware.h>
#include <linux/interrupt.h>
#include <linux/list.h>
+#ifdef CONFIG_CNSS_OUT_OF_TREE
+#include "mhi.h"
+#else
#include <linux/mhi.h>
+#endif
#include <linux/module.h>
#include <linux/random.h>
#include <linux/slab.h>
diff --git a/mhi/core/debugfs.c b/mhi/core/debugfs.c
index 704fcf5..c69a034 100644
--- a/mhi/core/debugfs.c
+++ b/mhi/core/debugfs.c
@@ -8,7 +8,11 @@
#include <linux/device.h>
#include <linux/interrupt.h>
#include <linux/list.h>
+#ifdef CONFIG_CNSS_OUT_OF_TREE
+#include "mhi.h"
+#else
#include <linux/mhi.h>
+#endif
#include <linux/module.h>
#include "internal.h"
diff --git a/mhi/core/init.c b/mhi/core/init.c
index 94d1c6b..417fc6e 100644
--- a/mhi/core/init.c
+++ b/mhi/core/init.c
@@ -11,7 +11,11 @@
#include <linux/idr.h>
#include <linux/interrupt.h>
#include <linux/list.h>
+#ifdef CONFIG_CNSS_OUT_OF_TREE
+#include "mhi.h"
+#else
#include <linux/mhi.h>
+#endif
#include <linux/mod_devicetable.h>
#include <linux/module.h>
#include <linux/slab.h>
diff --git a/mhi/core/internal.h b/mhi/core/internal.h
index 1b14dc6..293e4a8 100644
--- a/mhi/core/internal.h
+++ b/mhi/core/internal.h
@@ -7,7 +7,11 @@
#ifndef _MHI_INT_H
#define _MHI_INT_H
+#ifdef CONFIG_CNSS_OUT_OF_TREE
+#include "mhi.h"
+#else
#include <linux/mhi.h>
+#endif
#include "misc.h"
extern struct bus_type mhi_bus_type;
diff --git a/mhi/core/main.c b/mhi/core/main.c
index 925b468..75ada8f 100644
--- a/mhi/core/main.c
+++ b/mhi/core/main.c
@@ -10,7 +10,11 @@
#include <linux/dma-mapping.h>
#include <linux/interrupt.h>
#include <linux/list.h>
+#ifdef CONFIG_CNSS_OUT_OF_TREE
+#include "mhi.h"
+#else
#include <linux/mhi.h>
+#endif
#include <linux/module.h>
#include <linux/skbuff.h>
#include <linux/slab.h>
diff --git a/mhi/core/misc.h b/mhi/core/misc.h
index fb14894..507cead 100644
--- a/mhi/core/misc.h
+++ b/mhi/core/misc.h
@@ -7,7 +7,11 @@
#ifndef _MHI_CORE_MISC_H_
#define _MHI_CORE_MISC_H_
+#ifdef CONFIG_CNSS_OUT_OF_TREE
+#include "mhi_misc.h"
+#else
#include <linux/mhi_misc.h>
+#endif
#define MHI_FORCE_WAKE_DELAY_US (100)
#define MHI_IPC_LOG_PAGES (100)
diff --git a/mhi/core/pm.c b/mhi/core/pm.c
index 5676f73..ff04d8d 100644
--- a/mhi/core/pm.c
+++ b/mhi/core/pm.c
@@ -10,7 +10,11 @@
#include <linux/dma-mapping.h>
#include <linux/interrupt.h>
#include <linux/list.h>
+#ifdef CONFIG_CNSS_OUT_OF_TREE
+#include "mhi.h"
+#else
#include <linux/mhi.h>
+#endif
#include <linux/module.h>
#include <linux/slab.h>
#include <linux/wait.h>