diff options
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945-led.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-led.h | 18 |
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 | ||
30 | struct iwl_priv; | 30 | struct 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 | ||
36 | struct 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 | |||
50 | extern int iwl3945_led_register(struct iwl_priv *priv); | 36 | extern int iwl3945_led_register(struct iwl_priv *priv); |
51 | extern void iwl3945_led_unregister(struct iwl_priv *priv); | 37 | extern void iwl3945_led_unregister(struct iwl_priv *priv); |
52 | extern void iwl3945_led_background(struct iwl_priv *priv); | 38 | extern void iwl3945_led_background(struct iwl_priv *priv); |
@@ -55,6 +41,6 @@ extern void iwl3945_led_background(struct iwl_priv *priv); | |||
55 | static inline int iwl3945_led_register(struct iwl_priv *priv) { return 0; } | 41 | static inline int iwl3945_led_register(struct iwl_priv *priv) { return 0; } |
56 | static inline void iwl3945_led_unregister(struct iwl_priv *priv) {} | 42 | static inline void iwl3945_led_unregister(struct iwl_priv *priv) {} |
57 | static inline void iwl3945_led_background(struct iwl_priv *priv) {} | 43 | static 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 */ |