aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945-led.h
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945-led.h')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945-led.h18
1 files changed, 2 insertions, 16 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-led.h b/drivers/net/wireless/iwlwifi/iwl-3945-led.h
index 88185a6ccd6a..3b65642258ca 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-led.h
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-led.h
@@ -29,24 +29,10 @@
29 29
30struct iwl_priv; 30struct iwl_priv;
31 31
32#ifdef CONFIG_IWL3945_LEDS 32#ifdef CONFIG_IWLWIFI_LEDS
33 33
34#include "iwl-led.h" 34#include "iwl-led.h"
35 35
36struct iwl3945_led {
37 struct iwl_priv *priv;
38 struct led_classdev led_dev;
39 char name[32];
40
41 int (*led_on) (struct iwl_priv *priv, int led_id);
42 int (*led_off) (struct iwl_priv *priv, int led_id);
43 int (*led_pattern) (struct iwl_priv *priv, int led_id,
44 unsigned int idx);
45
46 enum led_type type;
47 unsigned int registered;
48};
49
50extern int iwl3945_led_register(struct iwl_priv *priv); 36extern int iwl3945_led_register(struct iwl_priv *priv);
51extern void iwl3945_led_unregister(struct iwl_priv *priv); 37extern void iwl3945_led_unregister(struct iwl_priv *priv);
52extern void iwl3945_led_background(struct iwl_priv *priv); 38extern void iwl3945_led_background(struct iwl_priv *priv);
@@ -55,6 +41,6 @@ extern void iwl3945_led_background(struct iwl_priv *priv);
55static inline int iwl3945_led_register(struct iwl_priv *priv) { return 0; } 41static inline int iwl3945_led_register(struct iwl_priv *priv) { return 0; }
56static inline void iwl3945_led_unregister(struct iwl_priv *priv) {} 42static inline void iwl3945_led_unregister(struct iwl_priv *priv) {}
57static inline void iwl3945_led_background(struct iwl_priv *priv) {} 43static inline void iwl3945_led_background(struct iwl_priv *priv) {}
58#endif /* CONFIG_IWL3945_LEDS */
59 44
45#endif /* IWLWIFI_LEDS*/
60#endif /* IWL3945_LEDS_H */ 46#endif /* IWL3945_LEDS_H */