[PATCH 1/1] Cleanup includes
Olof Johansson
dev at skyshaper.net
Thu Jun 27 02:37:54 EDT 2013
Removing unused includes
Signed-off-by: Olof Johansson <dev at skyshaper.net>
Pull request: https://github.com/KrasnikovEugene/wcn36xx/pull/62
---
dxe.c | 6 ++----
dxe.h | 1 -
main.c | 5 -----
smd.c | 2 --
smd.h | 2 --
txrx.c | 1 -
txrx.h | 3 +--
wcn36xx.h | 2 +-
8 files changed, 4 insertions(+), 18 deletions(-)
diff --git a/dxe.c b/dxe.c
index 4de4cb1..2c7b774 100644
--- a/dxe.c
+++ b/dxe.c
@@ -19,11 +19,9 @@
* through low channels data packets are transfered
* through high channels managment packets are transfered
*/
-#include <linux/interrupt.h>
-#include <linux/ieee80211.h>
-#include "dxe.h"
-#include "txrx.h"
+
#include "wcn36xx.h"
+#include "txrx.h"
static void wcn36xx_dxe_write_register(struct wcn36xx *wcn, int addr, int data)
{
diff --git a/dxe.h b/dxe.h
index 5a40330..6cd32f0 100644
--- a/dxe.h
+++ b/dxe.h
@@ -17,7 +17,6 @@
#ifndef _DXE_H_
#define _DXE_H_
-#include <linux/dma-mapping.h>
/*
TX_LOW = DMA0
TX_HIGH = DMA4
diff --git a/main.c b/main.c
index de787f3..be8cd75 100644
--- a/main.c
+++ b/main.c
@@ -15,13 +15,8 @@
*/
#include <linux/module.h>
-#include <linux/qcomwlan_pwrif.h>
-#include <linux/platform_device.h>
#include <linux/wcnss_wlan.h>
-#include <linux/etherdevice.h>
#include "wcn36xx.h"
-#include "dxe.h"
-#include "hal.h"
unsigned int debug_mask;
module_param(debug_mask, uint, 0644);
diff --git a/smd.c b/smd.c
index 1f64a67..fbd4e43 100644
--- a/smd.c
+++ b/smd.c
@@ -16,8 +16,6 @@
#include "smd.h"
-#include <linux/etherdevice.h>
-
static int wcn36xx_smd_send_and_wait(struct wcn36xx *wcn, size_t len)
{
int avail;
diff --git a/smd.h b/smd.h
index 052104a..c13735c 100644
--- a/smd.h
+++ b/smd.h
@@ -17,9 +17,7 @@
#ifndef _SMD_H_
#define _SMD_H_
-#include <mach/msm_smd.h>
#include "wcn36xx.h"
-#include "hal.h"
/* Max shared size is 4k but we take less.*/
#define WCN36XX_NV_FRAGMENT_SIZE 3072
diff --git a/txrx.c b/txrx.c
index 9c3a4d1..1fb7a57 100644
--- a/txrx.c
+++ b/txrx.c
@@ -15,7 +15,6 @@
*/
#include "txrx.h"
-#include <linux/ieee80211.h>
#define RSSI0(x) (100 - ((x->phy_stat0 >> 24) & 0xff))
diff --git a/txrx.h b/txrx.h
index 648c210..3657389 100644
--- a/txrx.h
+++ b/txrx.h
@@ -16,9 +16,8 @@
#ifndef _TXRX_H_
#define _TXRX_H_
+
#include "wcn36xx.h"
-#include "smd.h"
-#include <linux/ieee80211.h>
/* TODO describe all properties */
#define WCN36XX_802_11_HEADER_LEN 24
diff --git a/wcn36xx.h b/wcn36xx.h
index 0d0ed0c..c70e817 100644
--- a/wcn36xx.h
+++ b/wcn36xx.h
@@ -25,9 +25,9 @@
#include <mach/msm_smd.h>
#include <net/mac80211.h>
+#include "hal.h"
#include "smd.h"
#include "dxe.h"
-#include "hal.h"
#define DRIVER_PREFIX "wcn36xx: "
#define WLAN_NV_FILE "wlan/prima/WCNSS_qcom_wlan_nv.bin"
--
1.8.2.2
More information about the wcn36xx
mailing list