Commit 314fd52f authored by Muhammad Usama Anjum's avatar Muhammad Usama Anjum Committed by Greg Kroah-Hartman

staging: wfx: remove unused included header files

Many header files have been included, but never used. Those header
files have been removed.
Signed-off-by: default avatarMuhammad Usama Anjum <musamaanjum@gmail.com>
Link: https://lore.kernel.org/r/20210211143637.GA177425@LEGIONSigned-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent dc31fc6c
...@@ -5,7 +5,6 @@ ...@@ -5,7 +5,6 @@
* Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/gpio/consumer.h>
#include <net/mac80211.h> #include <net/mac80211.h>
#include "bh.h" #include "bh.h"
......
...@@ -8,10 +8,6 @@ ...@@ -8,10 +8,6 @@
#ifndef WFX_BH_H #ifndef WFX_BH_H
#define WFX_BH_H #define WFX_BH_H
#include <linux/atomic.h>
#include <linux/wait.h>
#include <linux/workqueue.h>
struct wfx_dev; struct wfx_dev;
struct wfx_hif { struct wfx_hif {
......
...@@ -8,9 +8,6 @@ ...@@ -8,9 +8,6 @@
#ifndef WFX_BUS_H #ifndef WFX_BUS_H
#define WFX_BUS_H #define WFX_BUS_H
#include <linux/mmc/sdio_func.h>
#include <linux/spi/spi.h>
#define WFX_REG_CONFIG 0x0 #define WFX_REG_CONFIG 0x0
#define WFX_REG_CONTROL 0x1 #define WFX_REG_CONTROL 0x1
#define WFX_REG_IN_OUT_QUEUE 0x2 #define WFX_REG_IN_OUT_QUEUE 0x2
......
...@@ -5,19 +5,13 @@ ...@@ -5,19 +5,13 @@
* Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/module.h>
#include <linux/mmc/sdio.h> #include <linux/mmc/sdio.h>
#include <linux/mmc/sdio_func.h> #include <linux/mmc/sdio_func.h>
#include <linux/mmc/card.h> #include <linux/mmc/card.h>
#include <linux/interrupt.h>
#include <linux/of_irq.h> #include <linux/of_irq.h>
#include <linux/irq.h>
#include "bus.h" #include "bus.h"
#include "wfx.h" #include "wfx.h"
#include "hwio.h"
#include "main.h"
#include "bh.h"
static const struct wfx_platform_data wfx_sdio_pdata = { static const struct wfx_platform_data wfx_sdio_pdata = {
.file_fw = "wfm_wf200", .file_fw = "wfm_wf200",
......
...@@ -6,19 +6,12 @@ ...@@ -6,19 +6,12 @@
* Copyright (c) 2011, Sagrad Inc. * Copyright (c) 2011, Sagrad Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/module.h>
#include <linux/delay.h>
#include <linux/gpio/consumer.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/interrupt.h>
#include <linux/irq.h> #include <linux/irq.h>
#include <linux/of.h> #include <linux/of.h>
#include "bus.h" #include "bus.h"
#include "wfx.h" #include "wfx.h"
#include "hwio.h"
#include "main.h"
#include "bh.h"
#define SET_WRITE 0x7FFF /* usage: and operation */ #define SET_WRITE 0x7FFF /* usage: and operation */
#define SET_READ 0x8000 /* usage: or operation */ #define SET_READ 0x8000 /* usage: or operation */
......
...@@ -5,13 +5,8 @@ ...@@ -5,13 +5,8 @@
* Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/etherdevice.h>
#include <net/mac80211.h>
#include "data_rx.h" #include "data_rx.h"
#include "wfx.h" #include "wfx.h"
#include "bh.h"
#include "sta.h"
static void wfx_rx_handle_ba(struct wfx_vif *wvif, struct ieee80211_mgmt *mgmt) static void wfx_rx_handle_ba(struct wfx_vif *wvif, struct ieee80211_mgmt *mgmt)
{ {
......
...@@ -6,14 +6,9 @@ ...@@ -6,14 +6,9 @@
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <net/mac80211.h> #include <net/mac80211.h>
#include <linux/etherdevice.h>
#include "data_tx.h"
#include "wfx.h" #include "wfx.h"
#include "bh.h"
#include "sta.h" #include "sta.h"
#include "queue.h"
#include "debug.h"
#include "traces.h" #include "traces.h"
#include "hif_tx_mib.h" #include "hif_tx_mib.h"
......
...@@ -8,9 +8,6 @@ ...@@ -8,9 +8,6 @@
#ifndef WFX_DATA_TX_H #ifndef WFX_DATA_TX_H
#define WFX_DATA_TX_H #define WFX_DATA_TX_H
#include <linux/list.h>
#include <net/mac80211.h>
#include "hif_api_cmd.h" #include "hif_api_cmd.h"
#include "hif_api_mib.h" #include "hif_api_mib.h"
......
...@@ -5,15 +5,9 @@ ...@@ -5,15 +5,9 @@
* Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/debugfs.h>
#include <linux/seq_file.h>
#include <linux/crc32.h>
#include "debug.h" #include "debug.h"
#include "wfx.h" #include "wfx.h"
#include "sta.h" #include "sta.h"
#include "main.h"
#include "hif_tx.h"
#include "hif_tx_mib.h" #include "hif_tx_mib.h"
#define CREATE_TRACE_POINTS #define CREATE_TRACE_POINTS
......
...@@ -6,8 +6,6 @@ ...@@ -6,8 +6,6 @@
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/firmware.h> #include <linux/firmware.h>
#include <linux/slab.h>
#include <linux/mm.h>
#include <linux/bitfield.h> #include <linux/bitfield.h>
#include "fwio.h" #include "fwio.h"
......
...@@ -8,10 +8,6 @@ ...@@ -8,10 +8,6 @@
#ifndef WFX_HIF_API_CMD_H #ifndef WFX_HIF_API_CMD_H
#define WFX_HIF_API_CMD_H #define WFX_HIF_API_CMD_H
#include <linux/ieee80211.h>
#include "hif_api_general.h"
enum hif_requests_ids { enum hif_requests_ids {
HIF_REQ_ID_RESET = 0x0a, HIF_REQ_ID_RESET = 0x0a,
HIF_REQ_ID_READ_MIB = 0x05, HIF_REQ_ID_READ_MIB = 0x05,
......
...@@ -8,15 +8,6 @@ ...@@ -8,15 +8,6 @@
#ifndef WFX_HIF_API_GENERAL_H #ifndef WFX_HIF_API_GENERAL_H
#define WFX_HIF_API_GENERAL_H #define WFX_HIF_API_GENERAL_H
#ifdef __KERNEL__
#include <linux/types.h>
#include <linux/if_ether.h>
#else
#include <net/ethernet.h>
#include <stdint.h>
#define __packed __attribute__((__packed__))
#endif
#define HIF_ID_IS_INDICATION 0x80 #define HIF_ID_IS_INDICATION 0x80
#define HIF_COUNTER_MAX 7 #define HIF_COUNTER_MAX 7
......
...@@ -6,11 +6,7 @@ ...@@ -6,11 +6,7 @@
* Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/etherdevice.h>
#include "hif_tx.h"
#include "wfx.h" #include "wfx.h"
#include "bh.h"
#include "hwio.h" #include "hwio.h"
#include "debug.h" #include "debug.h"
#include "sta.h" #include "sta.h"
......
...@@ -6,13 +6,8 @@ ...@@ -6,13 +6,8 @@
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
* Copyright (C) 2010, ST-Ericsson SA * Copyright (C) 2010, ST-Ericsson SA
*/ */
#include <linux/etherdevice.h>
#include "wfx.h" #include "wfx.h"
#include "hif_tx.h"
#include "hif_tx_mib.h" #include "hif_tx_mib.h"
#include "hif_api_mib.h"
int hif_set_output_power(struct wfx_vif *wvif, int val) int hif_set_output_power(struct wfx_vif *wvif, int val)
{ {
......
...@@ -5,13 +5,10 @@ ...@@ -5,13 +5,10 @@
* Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/kernel.h>
#include <linux/delay.h>
#include <linux/slab.h> #include <linux/slab.h>
#include "hwio.h" #include "hwio.h"
#include "wfx.h" #include "wfx.h"
#include "bus.h"
#include "traces.h" #include "traces.h"
/* /*
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
#ifndef WFX_HWIO_H #ifndef WFX_HWIO_H
#define WFX_HWIO_H #define WFX_HWIO_H
#include <linux/types.h>
struct wfx_dev; struct wfx_dev;
int wfx_data_read(struct wfx_dev *wdev, void *buf, size_t buf_len); int wfx_data_read(struct wfx_dev *wdev, void *buf, size_t buf_len);
......
...@@ -5,12 +5,10 @@ ...@@ -5,12 +5,10 @@
* Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/etherdevice.h>
#include <net/mac80211.h> #include <net/mac80211.h>
#include "key.h" #include "key.h"
#include "wfx.h" #include "wfx.h"
#include "hif_tx_mib.h"
static int wfx_alloc_key(struct wfx_dev *wdev) static int wfx_alloc_key(struct wfx_dev *wdev)
{ {
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
#ifndef WFX_KEY_H #ifndef WFX_KEY_H
#define WFX_KEY_H #define WFX_KEY_H
#include <net/mac80211.h>
struct wfx_dev; struct wfx_dev;
struct wfx_vif; struct wfx_vif;
......
...@@ -10,28 +10,21 @@ ...@@ -10,28 +10,21 @@
* Copyright (c) 2006, Michael Wu <flamingice@sourmilk.net> * Copyright (c) 2006, Michael Wu <flamingice@sourmilk.net>
* Copyright (c) 2004-2006 Jean-Baptiste Note <jbnote@gmail.com>, et al. * Copyright (c) 2004-2006 Jean-Baptiste Note <jbnote@gmail.com>, et al.
*/ */
#include <linux/module.h>
#include <linux/of.h> #include <linux/of.h>
#include <linux/of_net.h> #include <linux/of_net.h>
#include <linux/gpio/consumer.h>
#include <linux/mmc/sdio_func.h> #include <linux/mmc/sdio_func.h>
#include <linux/spi/spi.h> #include <linux/spi/spi.h>
#include <linux/etherdevice.h>
#include <linux/firmware.h> #include <linux/firmware.h>
#include "main.h"
#include "wfx.h" #include "wfx.h"
#include "fwio.h" #include "fwio.h"
#include "hwio.h" #include "hwio.h"
#include "bus.h" #include "bus.h"
#include "bh.h"
#include "sta.h" #include "sta.h"
#include "key.h" #include "key.h"
#include "scan.h" #include "scan.h"
#include "debug.h" #include "debug.h"
#include "data_tx.h"
#include "hif_tx_mib.h" #include "hif_tx_mib.h"
#include "hif_api_cmd.h"
#define WFX_PDS_MAX_SIZE 1500 #define WFX_PDS_MAX_SIZE 1500
......
...@@ -10,11 +10,8 @@ ...@@ -10,11 +10,8 @@
#ifndef WFX_MAIN_H #ifndef WFX_MAIN_H
#define WFX_MAIN_H #define WFX_MAIN_H
#include <linux/device.h>
#include <linux/gpio/consumer.h> #include <linux/gpio/consumer.h>
#include "hif_api_general.h"
struct wfx_dev; struct wfx_dev;
struct hwbus_ops; struct hwbus_ops;
......
...@@ -5,13 +5,9 @@ ...@@ -5,13 +5,9 @@
* Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/sched.h>
#include <net/mac80211.h> #include <net/mac80211.h>
#include "queue.h"
#include "wfx.h" #include "wfx.h"
#include "sta.h"
#include "data_tx.h"
#include "traces.h" #include "traces.h"
void wfx_tx_lock(struct wfx_dev *wdev) void wfx_tx_lock(struct wfx_dev *wdev)
......
...@@ -8,9 +8,6 @@ ...@@ -8,9 +8,6 @@
#ifndef WFX_QUEUE_H #ifndef WFX_QUEUE_H
#define WFX_QUEUE_H #define WFX_QUEUE_H
#include <linux/skbuff.h>
#include <linux/atomic.h>
struct wfx_dev; struct wfx_dev;
struct wfx_vif; struct wfx_vif;
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
#ifndef WFX_SCAN_H #ifndef WFX_SCAN_H
#define WFX_SCAN_H #define WFX_SCAN_H
#include <net/mac80211.h>
struct wfx_dev; struct wfx_dev;
struct wfx_vif; struct wfx_vif;
......
...@@ -5,17 +5,11 @@ ...@@ -5,17 +5,11 @@
* Copyright (c) 2017-2020, Silicon Laboratories, Inc. * Copyright (c) 2017-2020, Silicon Laboratories, Inc.
* Copyright (c) 2010, ST-Ericsson * Copyright (c) 2010, ST-Ericsson
*/ */
#include <linux/etherdevice.h>
#include <net/mac80211.h> #include <net/mac80211.h>
#include "sta.h" #include "sta.h"
#include "wfx.h" #include "wfx.h"
#include "fwio.h"
#include "bh.h"
#include "key.h"
#include "scan.h" #include "scan.h"
#include "debug.h"
#include "hif_tx.h"
#include "hif_tx_mib.h" #include "hif_tx_mib.h"
#define HIF_MAX_ARP_IP_ADDRTABLE_ENTRIES 2 #define HIF_MAX_ARP_IP_ADDRTABLE_ENTRIES 2
......
...@@ -8,8 +8,6 @@ ...@@ -8,8 +8,6 @@
#ifndef WFX_STA_H #ifndef WFX_STA_H
#define WFX_STA_H #define WFX_STA_H
#include <net/mac80211.h>
struct wfx_dev; struct wfx_dev;
struct wfx_vif; struct wfx_vif;
......
...@@ -12,11 +12,8 @@ ...@@ -12,11 +12,8 @@
#define _WFX_TRACE_H #define _WFX_TRACE_H
#include <linux/tracepoint.h> #include <linux/tracepoint.h>
#include <net/mac80211.h>
#include "bus.h" #include "bus.h"
#include "hif_api_cmd.h"
#include "hif_api_mib.h"
/* The hell below need some explanations. For each symbolic number, we need to /* The hell below need some explanations. For each symbolic number, we need to
* define it with TRACE_DEFINE_ENUM() and in a list for __print_symbolic. * define it with TRACE_DEFINE_ENUM() and in a list for __print_symbolic.
......
...@@ -10,9 +10,6 @@ ...@@ -10,9 +10,6 @@
#ifndef WFX_H #ifndef WFX_H
#define WFX_H #define WFX_H
#include <linux/completion.h>
#include <linux/workqueue.h>
#include <linux/mutex.h>
#include <linux/nospec.h> #include <linux/nospec.h>
#include <net/mac80211.h> #include <net/mac80211.h>
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment