Commit b5b83239 authored by Samuel Ortiz's avatar Samuel Ortiz Committed by John W. Linville

iwl3945: Getting rid of iwl-3945-led.h

The duplicated LED definitions prevent one from including iwl-dev.h from the
3945 specific C files.
Moreover, we are sharing many definitions between iwl-3945-led.h and
iwl-led.h, so let's just use the iwl one. Note that this file will get more
cleanups once we share a common iwl_priv structure.
Signed-off-by: default avatarSamuel Ortiz <samuel.ortiz@intel.com>
Acked-by: default avatarAbhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: default avatarReinette Chatre <reinette.chatre@intel.com>
Signed-off-by: default avatarJohn W. Linville <linville@tuxdriver.com>
parent d9829a67
...@@ -30,22 +30,8 @@ ...@@ -30,22 +30,8 @@
struct iwl3945_priv; struct iwl3945_priv;
#ifdef CONFIG_IWL3945_LEDS #ifdef CONFIG_IWL3945_LEDS
#define IWL_LED_SOLID 11
#define IWL_LED_NAME_LEN 31
#define IWL_DEF_LED_INTRVL __constant_cpu_to_le32(1000)
#define IWL_LED_ACTIVITY (0<<1) #include "iwl-led.h"
#define IWL_LED_LINK (1<<1)
enum led_type {
IWL_LED_TRG_TX,
IWL_LED_TRG_RX,
IWL_LED_TRG_ASSOC,
IWL_LED_TRG_RADIO,
IWL_LED_TRG_MAX,
};
#include <linux/leds.h>
struct iwl3945_led { struct iwl3945_led {
struct iwl3945_priv *priv; struct iwl3945_priv *priv;
......
...@@ -30,7 +30,7 @@ ...@@ -30,7 +30,7 @@
struct iwl_priv; struct iwl_priv;
#ifdef CONFIG_IWLWIFI_LEDS #if defined(CONFIG_IWLWIFI_LEDS) || defined(CONFIG_IWL3945_LEDS)
#include <linux/leds.h> #include <linux/leds.h>
#define IWL_LED_SOLID 11 #define IWL_LED_SOLID 11
...@@ -47,7 +47,9 @@ enum led_type { ...@@ -47,7 +47,9 @@ enum led_type {
IWL_LED_TRG_RADIO, IWL_LED_TRG_RADIO,
IWL_LED_TRG_MAX, IWL_LED_TRG_MAX,
}; };
#endif
#ifdef CONFIG_IWLWIFI_LEDS
struct iwl_led { struct iwl_led {
struct iwl_priv *priv; struct iwl_priv *priv;
......
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