diff options
author | Abhijeet Kolekar <abhijeet.kolekar@intel.com> | 2008-12-18 21:37:28 -0500 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2009-01-29 15:59:13 -0500 |
commit | 4a8a43222db6f04c88def2160a95f978f704b515 (patch) | |
tree | c5b5666c735e4f78045688ece7f5879f9529b032 /drivers/net/wireless/iwlwifi/iwl-3945-led.h | |
parent | f2c7e52100545e54af064fe0345d141fdcf2d243 (diff) |
iwl3945: replaces iwl3945_priv with iwl_priv
The patch replaces iwl3945_priv to iwl_priv. It adds 3945 specific
data members to iwl_priv.
Signed-off-by: Abhijeet Kolekar <abhijeet.kolekar@intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945-led.h')
-rw-r--r-- | drivers/net/wireless/iwlwifi/iwl-3945-led.h | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-led.h b/drivers/net/wireless/iwlwifi/iwl-3945-led.h index b697c890f623..859bb9b1e1b2 100644 --- a/drivers/net/wireless/iwlwifi/iwl-3945-led.h +++ b/drivers/net/wireless/iwlwifi/iwl-3945-led.h | |||
@@ -27,34 +27,34 @@ | |||
27 | #ifndef IWL3945_LEDS_H | 27 | #ifndef IWL3945_LEDS_H |
28 | #define IWL3945_LEDS_H | 28 | #define IWL3945_LEDS_H |
29 | 29 | ||
30 | struct iwl3945_priv; | 30 | struct iwl_priv; |
31 | 31 | ||
32 | #ifdef CONFIG_IWL3945_LEDS | 32 | #ifdef CONFIG_IWL3945_LEDS |
33 | 33 | ||
34 | #include "iwl-led.h" | 34 | #include "iwl-led.h" |
35 | 35 | ||
36 | struct iwl3945_led { | 36 | struct iwl3945_led { |
37 | struct iwl3945_priv *priv; | 37 | struct iwl_priv *priv; |
38 | struct led_classdev led_dev; | 38 | struct led_classdev led_dev; |
39 | char name[32]; | 39 | char name[32]; |
40 | 40 | ||
41 | int (*led_on) (struct iwl3945_priv *priv, int led_id); | 41 | int (*led_on) (struct iwl_priv *priv, int led_id); |
42 | int (*led_off) (struct iwl3945_priv *priv, int led_id); | 42 | int (*led_off) (struct iwl_priv *priv, int led_id); |
43 | int (*led_pattern) (struct iwl3945_priv *priv, int led_id, | 43 | int (*led_pattern) (struct iwl_priv *priv, int led_id, |
44 | unsigned int idx); | 44 | unsigned int idx); |
45 | 45 | ||
46 | enum led_type type; | 46 | enum led_type type; |
47 | unsigned int registered; | 47 | unsigned int registered; |
48 | }; | 48 | }; |
49 | 49 | ||
50 | extern int iwl3945_led_register(struct iwl3945_priv *priv); | 50 | extern int iwl3945_led_register(struct iwl_priv *priv); |
51 | extern void iwl3945_led_unregister(struct iwl3945_priv *priv); | 51 | extern void iwl3945_led_unregister(struct iwl_priv *priv); |
52 | extern void iwl3945_led_background(struct iwl3945_priv *priv); | 52 | extern void iwl3945_led_background(struct iwl_priv *priv); |
53 | 53 | ||
54 | #else | 54 | #else |
55 | static inline int iwl3945_led_register(struct iwl3945_priv *priv) { return 0; } | 55 | static inline int iwl3945_led_register(struct iwl_priv *priv) { return 0; } |
56 | static inline void iwl3945_led_unregister(struct iwl3945_priv *priv) {} | 56 | static inline void iwl3945_led_unregister(struct iwl_priv *priv) {} |
57 | static inline void iwl3945_led_background(struct iwl3945_priv *priv) {} | 57 | static inline void iwl3945_led_background(struct iwl_priv *priv) {} |
58 | #endif /* CONFIG_IWL3945_LEDS */ | 58 | #endif /* CONFIG_IWL3945_LEDS */ |
59 | 59 | ||
60 | #endif /* IWL3945_LEDS_H */ | 60 | #endif /* IWL3945_LEDS_H */ |