aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/iwlwifi/iwl-3945-led.c
diff options
context:
space:
mode:
authorTomas Winkler <tomas.winkler@intel.com>2008-12-18 21:37:05 -0500
committerJohn W. Linville <linville@tuxdriver.com>2009-01-29 15:58:53 -0500
commit4c897253cc9ae1c6a2798b27b5fe8e6d94ab6185 (patch)
treefa9538d37c07da9134e35ce96e6e8a00fa956696 /drivers/net/wireless/iwlwifi/iwl-3945-led.c
parent600c0e11ea6161e00e8cb4b4dda39a64ce988c60 (diff)
iwlwifi: 3945 remove duplicated code from iwl-3945-commands.h
This patch remove trivial (renames) commands and defines from iwl-3945-commands.h Signed-off-by: Tomas Winkler <tomas.winkler@intel.com> Acked-by: Samuel Ortiz <sameo@linux.intel.com> Signed-off-by: Reinette Chatre <reinette.chatre@intel.com> Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/wireless/iwlwifi/iwl-3945-led.c')
-rw-r--r--drivers/net/wireless/iwlwifi/iwl-3945-led.c13
1 files changed, 5 insertions, 8 deletions
diff --git a/drivers/net/wireless/iwlwifi/iwl-3945-led.c b/drivers/net/wireless/iwlwifi/iwl-3945-led.c
index 525e90bdc47f..b34bef4891b8 100644
--- a/drivers/net/wireless/iwlwifi/iwl-3945-led.c
+++ b/drivers/net/wireless/iwlwifi/iwl-3945-led.c
@@ -82,11 +82,11 @@ static inline int iwl3945_brightness_to_idx(enum led_brightness brightness)
82 82
83/* Send led command */ 83/* Send led command */
84static int iwl_send_led_cmd(struct iwl3945_priv *priv, 84static int iwl_send_led_cmd(struct iwl3945_priv *priv,
85 struct iwl3945_led_cmd *led_cmd) 85 struct iwl_led_cmd *led_cmd)
86{ 86{
87 struct iwl3945_host_cmd cmd = { 87 struct iwl3945_host_cmd cmd = {
88 .id = REPLY_LEDS_CMD, 88 .id = REPLY_LEDS_CMD,
89 .len = sizeof(struct iwl3945_led_cmd), 89 .len = sizeof(struct iwl_led_cmd),
90 .data = led_cmd, 90 .data = led_cmd,
91 .meta.flags = CMD_ASYNC, 91 .meta.flags = CMD_ASYNC,
92 .meta.u.callback = iwl3945_led_cmd_callback, 92 .meta.u.callback = iwl3945_led_cmd_callback,
@@ -101,7 +101,7 @@ static int iwl_send_led_cmd(struct iwl3945_priv *priv,
101static int iwl3945_led_pattern(struct iwl3945_priv *priv, int led_id, 101static int iwl3945_led_pattern(struct iwl3945_priv *priv, int led_id,
102 unsigned int idx) 102 unsigned int idx)
103{ 103{
104 struct iwl3945_led_cmd led_cmd = { 104 struct iwl_led_cmd led_cmd = {
105 .id = led_id, 105 .id = led_id,
106 .interval = IWL_DEF_LED_INTRVL 106 .interval = IWL_DEF_LED_INTRVL
107 }; 107 };
@@ -115,11 +115,10 @@ static int iwl3945_led_pattern(struct iwl3945_priv *priv, int led_id,
115} 115}
116 116
117 117
118#if 1
119/* Set led on command */ 118/* Set led on command */
120static int iwl3945_led_on(struct iwl3945_priv *priv, int led_id) 119static int iwl3945_led_on(struct iwl3945_priv *priv, int led_id)
121{ 120{
122 struct iwl3945_led_cmd led_cmd = { 121 struct iwl_led_cmd led_cmd = {
123 .id = led_id, 122 .id = led_id,
124 .on = IWL_LED_SOLID, 123 .on = IWL_LED_SOLID,
125 .off = 0, 124 .off = 0,
@@ -131,7 +130,7 @@ static int iwl3945_led_on(struct iwl3945_priv *priv, int led_id)
131/* Set led off command */ 130/* Set led off command */
132static int iwl3945_led_off(struct iwl3945_priv *priv, int led_id) 131static int iwl3945_led_off(struct iwl3945_priv *priv, int led_id)
133{ 132{
134 struct iwl3945_led_cmd led_cmd = { 133 struct iwl_led_cmd led_cmd = {
135 .id = led_id, 134 .id = led_id,
136 .on = 0, 135 .on = 0,
137 .off = 0, 136 .off = 0,
@@ -140,8 +139,6 @@ static int iwl3945_led_off(struct iwl3945_priv *priv, int led_id)
140 IWL_DEBUG_LED("led off %d\n", led_id); 139 IWL_DEBUG_LED("led off %d\n", led_id);
141 return iwl_send_led_cmd(priv, &led_cmd); 140 return iwl_send_led_cmd(priv, &led_cmd);
142} 141}
143#endif
144
145 142
146/* 143/*
147 * brightness call back function for Tx/Rx LED 144 * brightness call back function for Tx/Rx LED