diff options
author | Emmanuel Grumbach <emmanuel.grumbach@intel.com> | 2011-10-10 10:27:17 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2011-10-14 14:48:13 -0400 |
commit | 6a686c600268b71619f93d35f9373e2b6ab5947b (patch) | |
tree | f57423fe69cb6e3baa982b9b7d9b915818e11afb /drivers/net | |
parent | 8c22254454eaa4f483103c6850f6f16d4f09c161 (diff) |
iwlagn: move iwl_enable_rfkill_int and kill iwl-helpers.h
Move iwl_enable_rfkill_int to iwl-core.h, and remove the empty
iwl-helpers.h
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-1000.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-2000.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-5000.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-6000.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-lib.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rx.c | 3 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-tx.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-agn.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-core.h | 7 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-helpers.h | 44 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-scan.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c | 1 | ||||
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c | 1 |
16 files changed, 8 insertions, 59 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-1000.c b/drivers/net/wireless/iwlwifi/iwl-1000.c index 0bf6afd8e657..e12b48c2cff6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-1000.c +++ b/drivers/net/wireless/iwlwifi/iwl-1000.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #include "iwl-core.h" | 40 | #include "iwl-core.h" |
41 | #include "iwl-io.h" | 41 | #include "iwl-io.h" |
42 | #include "iwl-agn.h" | 42 | #include "iwl-agn.h" |
43 | #include "iwl-helpers.h" | ||
44 | #include "iwl-agn-hw.h" | 43 | #include "iwl-agn-hw.h" |
45 | #include "iwl-shared.h" | 44 | #include "iwl-shared.h" |
46 | #include "iwl-cfg.h" | 45 | #include "iwl-cfg.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-2000.c b/drivers/net/wireless/iwlwifi/iwl-2000.c index f14eb0b53c6f..79431977a968 100644 --- a/drivers/net/wireless/iwlwifi/iwl-2000.c +++ b/drivers/net/wireless/iwlwifi/iwl-2000.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #include "iwl-core.h" | 40 | #include "iwl-core.h" |
41 | #include "iwl-io.h" | 41 | #include "iwl-io.h" |
42 | #include "iwl-agn.h" | 42 | #include "iwl-agn.h" |
43 | #include "iwl-helpers.h" | ||
44 | #include "iwl-agn-hw.h" | 43 | #include "iwl-agn-hw.h" |
45 | #include "iwl-shared.h" | 44 | #include "iwl-shared.h" |
46 | #include "iwl-cfg.h" | 45 | #include "iwl-cfg.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-5000.c b/drivers/net/wireless/iwlwifi/iwl-5000.c index fdbf0316b6de..c511c98a89a8 100644 --- a/drivers/net/wireless/iwlwifi/iwl-5000.c +++ b/drivers/net/wireless/iwlwifi/iwl-5000.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #include "iwl-dev.h" | 40 | #include "iwl-dev.h" |
41 | #include "iwl-core.h" | 41 | #include "iwl-core.h" |
42 | #include "iwl-io.h" | 42 | #include "iwl-io.h" |
43 | #include "iwl-helpers.h" | ||
44 | #include "iwl-agn.h" | 43 | #include "iwl-agn.h" |
45 | #include "iwl-agn-hw.h" | 44 | #include "iwl-agn-hw.h" |
46 | #include "iwl-trans.h" | 45 | #include "iwl-trans.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-6000.c b/drivers/net/wireless/iwlwifi/iwl-6000.c index f05f2b8cfd6e..c840c78278db 100644 --- a/drivers/net/wireless/iwlwifi/iwl-6000.c +++ b/drivers/net/wireless/iwlwifi/iwl-6000.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #include "iwl-core.h" | 40 | #include "iwl-core.h" |
41 | #include "iwl-io.h" | 41 | #include "iwl-io.h" |
42 | #include "iwl-agn.h" | 42 | #include "iwl-agn.h" |
43 | #include "iwl-helpers.h" | ||
44 | #include "iwl-agn-hw.h" | 43 | #include "iwl-agn-hw.h" |
45 | #include "iwl-trans.h" | 44 | #include "iwl-trans.h" |
46 | #include "iwl-shared.h" | 45 | #include "iwl-shared.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c index b1746f9b6648..1a52ed29f2d6 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-lib.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-lib.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include "iwl-dev.h" | 35 | #include "iwl-dev.h" |
36 | #include "iwl-core.h" | 36 | #include "iwl-core.h" |
37 | #include "iwl-io.h" | 37 | #include "iwl-io.h" |
38 | #include "iwl-helpers.h" | ||
39 | #include "iwl-agn-hw.h" | 38 | #include "iwl-agn-hw.h" |
40 | #include "iwl-agn.h" | 39 | #include "iwl-agn.h" |
41 | #include "iwl-trans.h" | 40 | #include "iwl-trans.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c index daa3c60c6fff..5af9e6258a16 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rx.c | |||
@@ -3,7 +3,7 @@ | |||
3 | * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. | 3 | * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. |
4 | * | 4 | * |
5 | * Portions of this file are derived from the ipw3945 project, as well | 5 | * Portions of this file are derived from the ipw3945 project, as well |
6 | * as portions of the ieee80211 subsystem header files. | 6 | * as portionhelp of the ieee80211 subsystem header files. |
7 | * | 7 | * |
8 | * This program is free software; you can redistribute it and/or modify it | 8 | * This program is free software; you can redistribute it and/or modify it |
9 | * under the terms of version 2 of the GNU General Public License as | 9 | * under the terms of version 2 of the GNU General Public License as |
@@ -36,7 +36,6 @@ | |||
36 | #include "iwl-dev.h" | 36 | #include "iwl-dev.h" |
37 | #include "iwl-core.h" | 37 | #include "iwl-core.h" |
38 | #include "iwl-io.h" | 38 | #include "iwl-io.h" |
39 | #include "iwl-helpers.h" | ||
40 | #include "iwl-agn-calib.h" | 39 | #include "iwl-agn-calib.h" |
41 | #include "iwl-agn.h" | 40 | #include "iwl-agn.h" |
42 | #include "iwl-shared.h" | 41 | #include "iwl-shared.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c index 68bdc195e4f3..a580efefd4b4 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-rxon.c | |||
@@ -28,7 +28,6 @@ | |||
28 | #include "iwl-agn.h" | 28 | #include "iwl-agn.h" |
29 | #include "iwl-core.h" | 29 | #include "iwl-core.h" |
30 | #include "iwl-agn-calib.h" | 30 | #include "iwl-agn-calib.h" |
31 | #include "iwl-helpers.h" | ||
32 | #include "iwl-trans.h" | 31 | #include "iwl-trans.h" |
33 | #include "iwl-shared.h" | 32 | #include "iwl-shared.h" |
34 | 33 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c index d7e48f262701..35a6b71f358c 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-tx.c | |||
@@ -36,7 +36,6 @@ | |||
36 | #include "iwl-dev.h" | 36 | #include "iwl-dev.h" |
37 | #include "iwl-core.h" | 37 | #include "iwl-core.h" |
38 | #include "iwl-io.h" | 38 | #include "iwl-io.h" |
39 | #include "iwl-helpers.h" | ||
40 | #include "iwl-agn-hw.h" | 39 | #include "iwl-agn-hw.h" |
41 | #include "iwl-agn.h" | 40 | #include "iwl-agn.h" |
42 | #include "iwl-trans.h" | 41 | #include "iwl-trans.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c index b4e1e7c4c314..8ba0dd54e37d 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn-ucode.c | |||
@@ -35,7 +35,6 @@ | |||
35 | #include "iwl-dev.h" | 35 | #include "iwl-dev.h" |
36 | #include "iwl-core.h" | 36 | #include "iwl-core.h" |
37 | #include "iwl-io.h" | 37 | #include "iwl-io.h" |
38 | #include "iwl-helpers.h" | ||
39 | #include "iwl-agn-hw.h" | 38 | #include "iwl-agn-hw.h" |
40 | #include "iwl-agn.h" | 39 | #include "iwl-agn.h" |
41 | #include "iwl-agn-calib.h" | 40 | #include "iwl-agn-calib.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-agn.c b/drivers/net/wireless/iwlwifi/iwl-agn.c index 5a78480e4529..ccba69b7f8a7 100644 --- a/drivers/net/wireless/iwlwifi/iwl-agn.c +++ b/drivers/net/wireless/iwlwifi/iwl-agn.c | |||
@@ -47,7 +47,6 @@ | |||
47 | #include "iwl-dev.h" | 47 | #include "iwl-dev.h" |
48 | #include "iwl-core.h" | 48 | #include "iwl-core.h" |
49 | #include "iwl-io.h" | 49 | #include "iwl-io.h" |
50 | #include "iwl-helpers.h" | ||
51 | #include "iwl-agn-calib.h" | 50 | #include "iwl-agn-calib.h" |
52 | #include "iwl-agn.h" | 51 | #include "iwl-agn.h" |
53 | #include "iwl-shared.h" | 52 | #include "iwl-shared.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.c b/drivers/net/wireless/iwlwifi/iwl-core.c index 6ecdf82ff4cd..abd0de4a0e43 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.c +++ b/drivers/net/wireless/iwlwifi/iwl-core.c | |||
@@ -40,7 +40,6 @@ | |||
40 | #include "iwl-io.h" | 40 | #include "iwl-io.h" |
41 | #include "iwl-power.h" | 41 | #include "iwl-power.h" |
42 | #include "iwl-agn.h" | 42 | #include "iwl-agn.h" |
43 | #include "iwl-helpers.h" | ||
44 | #include "iwl-shared.h" | 43 | #include "iwl-shared.h" |
45 | #include "iwl-agn.h" | 44 | #include "iwl-agn.h" |
46 | #include "iwl-trans.h" | 45 | #include "iwl-trans.h" |
diff --git a/drivers/net/wireless/iwlwifi/iwl-core.h b/drivers/net/wireless/iwlwifi/iwl-core.h index 151cc43ec519..137da3380704 100644 --- a/drivers/net/wireless/iwlwifi/iwl-core.h +++ b/drivers/net/wireless/iwlwifi/iwl-core.h | |||
@@ -64,6 +64,7 @@ | |||
64 | #define __iwl_core_h__ | 64 | #define __iwl_core_h__ |
65 | 65 | ||
66 | #include "iwl-dev.h" | 66 | #include "iwl-dev.h" |
67 | #include "iwl-io.h" | ||
67 | 68 | ||
68 | /************************ | 69 | /************************ |
69 | * forward declarations * | 70 | * forward declarations * |
@@ -382,6 +383,12 @@ static inline bool iwl_advanced_bt_coexist(struct iwl_priv *priv) | |||
382 | priv->cfg->bt_params->advanced_bt_coexist; | 383 | priv->cfg->bt_params->advanced_bt_coexist; |
383 | } | 384 | } |
384 | 385 | ||
386 | static inline void iwl_enable_rfkill_int(struct iwl_priv *priv) | ||
387 | { | ||
388 | IWL_DEBUG_ISR(priv, "Enabling rfkill interrupt\n"); | ||
389 | iwl_write32(bus(priv), CSR_INT_MASK, CSR_INT_BIT_RF_KILL); | ||
390 | } | ||
391 | |||
385 | extern bool bt_siso_mode; | 392 | extern bool bt_siso_mode; |
386 | 393 | ||
387 | #endif /* __iwl_core_h__ */ | 394 | #endif /* __iwl_core_h__ */ |
diff --git a/drivers/net/wireless/iwlwifi/iwl-helpers.h b/drivers/net/wireless/iwlwifi/iwl-helpers.h deleted file mode 100644 index b7cf992fcc62..000000000000 --- a/drivers/net/wireless/iwlwifi/iwl-helpers.h +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | /****************************************************************************** | ||
2 | * | ||
3 | * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. | ||
4 | * | ||
5 | * Portions of this file are derived from the ipw3945 project, as well | ||
6 | * as portions of the ieee80211 subsystem header files. | ||
7 | * | ||
8 | * This program is free software; you can redistribute it and/or modify it | ||
9 | * under the terms of version 2 of the GNU General Public License as | ||
10 | * published by the Free Software Foundation. | ||
11 | * | ||
12 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
13 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
14 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
15 | * more details. | ||
16 | * | ||
17 | * You should have received a copy of the GNU General Public License along with | ||
18 | * this program; if not, write to the Free Software Foundation, Inc., | ||
19 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA | ||
20 | * | ||
21 | * The full GNU General Public License is included in this distribution in the | ||
22 | * file called LICENSE. | ||
23 | * | ||
24 | * Contact Information: | ||
25 | * Intel Linux Wireless <ilw@linux.intel.com> | ||
26 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 | ||
27 | * | ||
28 | *****************************************************************************/ | ||
29 | |||
30 | #ifndef __iwl_helpers_h__ | ||
31 | #define __iwl_helpers_h__ | ||
32 | |||
33 | #include <linux/ctype.h> | ||
34 | #include <net/mac80211.h> | ||
35 | |||
36 | #include "iwl-io.h" | ||
37 | |||
38 | static inline void iwl_enable_rfkill_int(struct iwl_priv *priv) | ||
39 | { | ||
40 | IWL_DEBUG_ISR(priv, "Enabling rfkill interrupt\n"); | ||
41 | iwl_write32(bus(priv), CSR_INT_MASK, CSR_INT_BIT_RF_KILL); | ||
42 | } | ||
43 | |||
44 | #endif /* __iwl_helpers_h__ */ | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-scan.c b/drivers/net/wireless/iwlwifi/iwl-scan.c index bb03bf8398e0..e5d727f537d0 100644 --- a/drivers/net/wireless/iwlwifi/iwl-scan.c +++ b/drivers/net/wireless/iwlwifi/iwl-scan.c | |||
@@ -34,7 +34,6 @@ | |||
34 | #include "iwl-dev.h" | 34 | #include "iwl-dev.h" |
35 | #include "iwl-core.h" | 35 | #include "iwl-core.h" |
36 | #include "iwl-io.h" | 36 | #include "iwl-io.h" |
37 | #include "iwl-helpers.h" | ||
38 | #include "iwl-agn.h" | 37 | #include "iwl-agn.h" |
39 | #include "iwl-trans.h" | 38 | #include "iwl-trans.h" |
40 | 39 | ||
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c b/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c index b4eff556cd0a..374c68cc1d70 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans-pcie-rx.c | |||
@@ -33,7 +33,6 @@ | |||
33 | /*TODO: Remove include to iwl-core.h*/ | 33 | /*TODO: Remove include to iwl-core.h*/ |
34 | #include "iwl-core.h" | 34 | #include "iwl-core.h" |
35 | #include "iwl-io.h" | 35 | #include "iwl-io.h" |
36 | #include "iwl-helpers.h" | ||
37 | #include "iwl-trans-pcie-int.h" | 36 | #include "iwl-trans-pcie-int.h" |
38 | 37 | ||
39 | /****************************************************************************** | 38 | /****************************************************************************** |
diff --git a/drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c b/drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c index 2e48979baa4e..0d7803b85af3 100644 --- a/drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c +++ b/drivers/net/wireless/iwlwifi/iwl-trans-pcie-tx.c | |||
@@ -37,7 +37,6 @@ | |||
37 | #include "iwl-prph.h" | 37 | #include "iwl-prph.h" |
38 | #include "iwl-io.h" | 38 | #include "iwl-io.h" |
39 | #include "iwl-agn-hw.h" | 39 | #include "iwl-agn-hw.h" |
40 | #include "iwl-helpers.h" | ||
41 | #include "iwl-trans-pcie-int.h" | 40 | #include "iwl-trans-pcie-int.h" |
42 | 41 | ||
43 | #define IWL_TX_CRC_SIZE 4 | 42 | #define IWL_TX_CRC_SIZE 4 |