diff options
Diffstat (limited to 'drivers')
-rw-r--r-- | drivers/net/wireless/iwlegacy/3945.c | 20 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/Makefile | 2 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-3945-led.c | 63 | ||||
-rw-r--r-- | drivers/net/wireless/iwlegacy/iwl-3945-led.h | 32 |
4 files changed, 20 insertions, 97 deletions
diff --git a/drivers/net/wireless/iwlegacy/3945.c b/drivers/net/wireless/iwlegacy/3945.c index b6abf3473fac..b41e60b40264 100644 --- a/drivers/net/wireless/iwlegacy/3945.c +++ b/drivers/net/wireless/iwlegacy/3945.c | |||
@@ -48,9 +48,27 @@ | |||
48 | #include "iwl-core.h" | 48 | #include "iwl-core.h" |
49 | #include "iwl-helpers.h" | 49 | #include "iwl-helpers.h" |
50 | #include "iwl-led.h" | 50 | #include "iwl-led.h" |
51 | #include "iwl-3945-led.h" | ||
52 | #include "iwl-3945-debugfs.h" | 51 | #include "iwl-3945-debugfs.h" |
53 | 52 | ||
53 | /* Send led command */ | ||
54 | static int il3945_send_led_cmd(struct il_priv *il, | ||
55 | struct il_led_cmd *led_cmd) | ||
56 | { | ||
57 | struct il_host_cmd cmd = { | ||
58 | .id = REPLY_LEDS_CMD, | ||
59 | .len = sizeof(struct il_led_cmd), | ||
60 | .data = led_cmd, | ||
61 | .flags = CMD_ASYNC, | ||
62 | .callback = NULL, | ||
63 | }; | ||
64 | |||
65 | return il_send_cmd(il, &cmd); | ||
66 | } | ||
67 | |||
68 | const struct il_led_ops il3945_led_ops = { | ||
69 | .cmd = il3945_send_led_cmd, | ||
70 | }; | ||
71 | |||
54 | #define IL_DECLARE_RATE_INFO(r, ip, in, rp, rn, pp, np) \ | 72 | #define IL_DECLARE_RATE_INFO(r, ip, in, rp, rn, pp, np) \ |
55 | [RATE_##r##M_IDX] = { RATE_##r##M_PLCP, \ | 73 | [RATE_##r##M_IDX] = { RATE_##r##M_PLCP, \ |
56 | RATE_##r##M_IEEE, \ | 74 | RATE_##r##M_IEEE, \ |
diff --git a/drivers/net/wireless/iwlegacy/Makefile b/drivers/net/wireless/iwlegacy/Makefile index b909352484a6..da83c69458bf 100644 --- a/drivers/net/wireless/iwlegacy/Makefile +++ b/drivers/net/wireless/iwlegacy/Makefile | |||
@@ -16,7 +16,7 @@ iwl4965-$(CONFIG_IWLEGACY_DEBUGFS) += iwl-4965-debugfs.o | |||
16 | 16 | ||
17 | # 3945 | 17 | # 3945 |
18 | obj-$(CONFIG_IWL3945) += iwl3945.o | 18 | obj-$(CONFIG_IWL3945) += iwl3945.o |
19 | iwl3945-objs := 3945-mac.o 3945.o iwl-3945-rs.o iwl-3945-led.o | 19 | iwl3945-objs := 3945-mac.o 3945.o iwl-3945-rs.o |
20 | iwl3945-$(CONFIG_IWLEGACY_DEBUGFS) += iwl-3945-debugfs.o | 20 | iwl3945-$(CONFIG_IWLEGACY_DEBUGFS) += iwl-3945-debugfs.o |
21 | 21 | ||
22 | ccflags-y += -D__CHECK_ENDIAN__ | 22 | ccflags-y += -D__CHECK_ENDIAN__ |
diff --git a/drivers/net/wireless/iwlegacy/iwl-3945-led.c b/drivers/net/wireless/iwlegacy/iwl-3945-led.c deleted file mode 100644 index 53ec4637015e..000000000000 --- a/drivers/net/wireless/iwlegacy/iwl-3945-led.c +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | /****************************************************************************** | ||
2 | * | ||
3 | * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of version 2 of the GNU General Public License as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., | ||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA | ||
17 | * | ||
18 | * The full GNU General Public License is included in this distribution in the | ||
19 | * file called LICENSE. | ||
20 | * | ||
21 | * Contact Information: | ||
22 | * Intel Linux Wireless <ilw@linux.intel.com> | ||
23 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 | ||
24 | * | ||
25 | *****************************************************************************/ | ||
26 | |||
27 | #include <linux/kernel.h> | ||
28 | #include <linux/module.h> | ||
29 | #include <linux/init.h> | ||
30 | #include <linux/pci.h> | ||
31 | #include <linux/dma-mapping.h> | ||
32 | #include <linux/delay.h> | ||
33 | #include <linux/skbuff.h> | ||
34 | #include <linux/netdevice.h> | ||
35 | #include <net/mac80211.h> | ||
36 | #include <linux/etherdevice.h> | ||
37 | #include <asm/unaligned.h> | ||
38 | |||
39 | #include "iwl-commands.h" | ||
40 | #include "iwl-3945.h" | ||
41 | #include "iwl-core.h" | ||
42 | #include "iwl-dev.h" | ||
43 | #include "iwl-3945-led.h" | ||
44 | |||
45 | |||
46 | /* Send led command */ | ||
47 | static int il3945_send_led_cmd(struct il_priv *il, | ||
48 | struct il_led_cmd *led_cmd) | ||
49 | { | ||
50 | struct il_host_cmd cmd = { | ||
51 | .id = REPLY_LEDS_CMD, | ||
52 | .len = sizeof(struct il_led_cmd), | ||
53 | .data = led_cmd, | ||
54 | .flags = CMD_ASYNC, | ||
55 | .callback = NULL, | ||
56 | }; | ||
57 | |||
58 | return il_send_cmd(il, &cmd); | ||
59 | } | ||
60 | |||
61 | const struct il_led_ops il3945_led_ops = { | ||
62 | .cmd = il3945_send_led_cmd, | ||
63 | }; | ||
diff --git a/drivers/net/wireless/iwlegacy/iwl-3945-led.h b/drivers/net/wireless/iwlegacy/iwl-3945-led.h deleted file mode 100644 index 369c72d5cd68..000000000000 --- a/drivers/net/wireless/iwlegacy/iwl-3945-led.h +++ /dev/null | |||
@@ -1,32 +0,0 @@ | |||
1 | /****************************************************************************** | ||
2 | * | ||
3 | * Copyright(c) 2003 - 2011 Intel Corporation. All rights reserved. | ||
4 | * | ||
5 | * This program is free software; you can redistribute it and/or modify it | ||
6 | * under the terms of version 2 of the GNU General Public License as | ||
7 | * published by the Free Software Foundation. | ||
8 | * | ||
9 | * This program is distributed in the hope that it will be useful, but WITHOUT | ||
10 | * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or | ||
11 | * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for | ||
12 | * more details. | ||
13 | * | ||
14 | * You should have received a copy of the GNU General Public License along with | ||
15 | * this program; if not, write to the Free Software Foundation, Inc., | ||
16 | * 51 Franklin Street, Fifth Floor, Boston, MA 02110, USA | ||
17 | * | ||
18 | * The full GNU General Public License is included in this distribution in the | ||
19 | * file called LICENSE. | ||
20 | * | ||
21 | * Contact Information: | ||
22 | * Intel Linux Wireless <ilw@linux.intel.com> | ||
23 | * Intel Corporation, 5200 N.E. Elam Young Parkway, Hillsboro, OR 97124-6497 | ||
24 | * | ||
25 | *****************************************************************************/ | ||
26 | |||
27 | #ifndef __il_3945_led_h__ | ||
28 | #define __il_3945_led_h__ | ||
29 | |||
30 | extern const struct il_led_ops il3945_led_ops; | ||
31 | |||
32 | #endif /* __il_3945_led_h__ */ | ||