summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlegacy/3945.c
diff options
context:
space:
mode:
authorStanislaw Gruszka <sgruszka@redhat.com>2011-08-29 17:05:28 +0200
committerStanislaw Gruszka <sgruszka@redhat.com>2011-11-15 12:41:31 +0100
commitecce1f09e847351d18e503e533000f781cac1d41 (patch)
treede5c0e9a645173550a24dc2b687441b68c86a557 /drivers/net/wireless/iwlegacy/3945.c
parentfc19cbde0c38c24f2d473f9095fbd5772883ec59 (diff)
downloadblackbird-op-linux-ecce1f09e847351d18e503e533000f781cac1d41.tar.gz
blackbird-op-linux-ecce1f09e847351d18e503e533000f781cac1d41.zip
iwlegacy: merge iwl-3945-led.c into 3945.c
Signed-off-by: Stanislaw Gruszka <sgruszka@redhat.com>
Diffstat (limited to 'drivers/net/wireless/iwlegacy/3945.c')
-rw-r--r--drivers/net/wireless/iwlegacy/3945.c20
1 files changed, 19 insertions, 1 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 @@
#include "iwl-core.h"
#include "iwl-helpers.h"
#include "iwl-led.h"
-#include "iwl-3945-led.h"
#include "iwl-3945-debugfs.h"
+/* Send led command */
+static int il3945_send_led_cmd(struct il_priv *il,
+ struct il_led_cmd *led_cmd)
+{
+ struct il_host_cmd cmd = {
+ .id = REPLY_LEDS_CMD,
+ .len = sizeof(struct il_led_cmd),
+ .data = led_cmd,
+ .flags = CMD_ASYNC,
+ .callback = NULL,
+ };
+
+ return il_send_cmd(il, &cmd);
+}
+
+const struct il_led_ops il3945_led_ops = {
+ .cmd = il3945_send_led_cmd,
+};
+
#define IL_DECLARE_RATE_INFO(r, ip, in, rp, rn, pp, np) \
[RATE_##r##M_IDX] = { RATE_##r##M_PLCP, \
RATE_##r##M_IEEE, \
OpenPOWER on IntegriCloud