diff options
author | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-07 13:04:00 -0500 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2012-03-07 13:04:00 -0500 |
commit | 05aab177a9a231455d8dfcb71c7179da0985e7f8 (patch) | |
tree | 91ee1e280e720fd10575679b8044ddd811a97176 /drivers/net/wireless/ath/ath6kl | |
parent | 12eb9444a8df7ab4aa5f4c91f8e3049af5d9819b (diff) |
ath6kl: fix too long lines
Found by checkpatch:
drivers/net/wireless/ath/ath6kl/init.c:78: WARNING: line over 80 characters
drivers/net/wireless/ath/ath6kl/init.c:397: WARNING: line over 80 characters
drivers/net/wireless/ath/ath6kl/init.c:407: WARNING: line over 80 characters
drivers/net/wireless/ath/ath6kl/htc.c:189: WARNING: line over 80 characters
drivers/net/wireless/ath/ath6kl/htc.c:704: WARNING: line over 80 characters
drivers/net/wireless/ath/ath6kl/htc.c:2452: WARNING: line over 80 characters
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath6kl')
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/htc.c | 43 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/init.c | 6 | ||||
-rw-r--r-- | drivers/net/wireless/ath/ath6kl/wmi.h | 4 |
3 files changed, 27 insertions, 26 deletions
diff --git a/drivers/net/wireless/ath/ath6kl/htc.c b/drivers/net/wireless/ath/ath6kl/htc.c index 24cfc3bb961e..4849d99cce77 100644 --- a/drivers/net/wireless/ath/ath6kl/htc.c +++ b/drivers/net/wireless/ath/ath6kl/htc.c | |||
@@ -172,31 +172,29 @@ static void ath6kl_credit_reduce(struct ath6kl_htc_credit_info *cred_info, | |||
172 | static void ath6kl_credit_update(struct ath6kl_htc_credit_info *cred_info, | 172 | static void ath6kl_credit_update(struct ath6kl_htc_credit_info *cred_info, |
173 | struct list_head *epdist_list) | 173 | struct list_head *epdist_list) |
174 | { | 174 | { |
175 | struct htc_endpoint_credit_dist *cur_dist_list; | 175 | struct htc_endpoint_credit_dist *cur_list; |
176 | 176 | ||
177 | list_for_each_entry(cur_dist_list, epdist_list, list) { | 177 | list_for_each_entry(cur_list, epdist_list, list) { |
178 | if (cur_dist_list->endpoint == ENDPOINT_0) | 178 | if (cur_list->endpoint == ENDPOINT_0) |
179 | continue; | 179 | continue; |
180 | 180 | ||
181 | if (cur_dist_list->cred_to_dist > 0) { | 181 | if (cur_list->cred_to_dist > 0) { |
182 | cur_dist_list->credits += | 182 | cur_list->credits += cur_list->cred_to_dist; |
183 | cur_dist_list->cred_to_dist; | 183 | cur_list->cred_to_dist = 0; |
184 | cur_dist_list->cred_to_dist = 0; | 184 | |
185 | if (cur_dist_list->credits > | 185 | if (cur_list->credits > cur_list->cred_assngd) |
186 | cur_dist_list->cred_assngd) | ||
187 | ath6kl_credit_reduce(cred_info, | 186 | ath6kl_credit_reduce(cred_info, |
188 | cur_dist_list, | 187 | cur_list, |
189 | cur_dist_list->cred_assngd); | 188 | cur_list->cred_assngd); |
190 | 189 | ||
191 | if (cur_dist_list->credits > | 190 | if (cur_list->credits > cur_list->cred_norm) |
192 | cur_dist_list->cred_norm) | 191 | ath6kl_credit_reduce(cred_info, cur_list, |
193 | ath6kl_credit_reduce(cred_info, cur_dist_list, | 192 | cur_list->cred_norm); |
194 | cur_dist_list->cred_norm); | ||
195 | 193 | ||
196 | if (!(cur_dist_list->dist_flags & HTC_EP_ACTIVE)) { | 194 | if (!(cur_list->dist_flags & HTC_EP_ACTIVE)) { |
197 | if (cur_dist_list->txq_depth == 0) | 195 | if (cur_list->txq_depth == 0) |
198 | ath6kl_credit_reduce(cred_info, | 196 | ath6kl_credit_reduce(cred_info, |
199 | cur_dist_list, 0); | 197 | cur_list, 0); |
200 | } | 198 | } |
201 | } | 199 | } |
202 | } | 200 | } |
@@ -674,6 +672,7 @@ static int ath6kl_htc_tx_setup_scat_list(struct htc_target *target, | |||
674 | struct htc_packet *packet; | 672 | struct htc_packet *packet; |
675 | int i, len, rem_scat, cred_pad; | 673 | int i, len, rem_scat, cred_pad; |
676 | int status = 0; | 674 | int status = 0; |
675 | u8 flags; | ||
677 | 676 | ||
678 | rem_scat = target->max_tx_bndl_sz; | 677 | rem_scat = target->max_tx_bndl_sz; |
679 | 678 | ||
@@ -700,8 +699,8 @@ static int ath6kl_htc_tx_setup_scat_list(struct htc_target *target, | |||
700 | 699 | ||
701 | scat_req->scat_list[i].packet = packet; | 700 | scat_req->scat_list[i].packet = packet; |
702 | /* prepare packet and flag message as part of a send bundle */ | 701 | /* prepare packet and flag message as part of a send bundle */ |
703 | ath6kl_htc_tx_prep_pkt(packet, | 702 | flags = packet->info.tx.flags | HTC_FLAGS_SEND_BUNDLE; |
704 | packet->info.tx.flags | HTC_FLAGS_SEND_BUNDLE, | 703 | ath6kl_htc_tx_prep_pkt(packet, flags, |
705 | cred_pad, packet->info.tx.seqno); | 704 | cred_pad, packet->info.tx.seqno); |
706 | /* Make sure the buffer is 4-byte aligned */ | 705 | /* Make sure the buffer is 4-byte aligned */ |
707 | ath6kl_htc_tx_buf_align(&packet->buf, | 706 | ath6kl_htc_tx_buf_align(&packet->buf, |
@@ -2405,6 +2404,7 @@ int ath6kl_htc_conn_service(struct htc_target *target, | |||
2405 | enum htc_endpoint_id assigned_ep = ENDPOINT_MAX; | 2404 | enum htc_endpoint_id assigned_ep = ENDPOINT_MAX; |
2406 | unsigned int max_msg_sz = 0; | 2405 | unsigned int max_msg_sz = 0; |
2407 | int status = 0; | 2406 | int status = 0; |
2407 | u16 msg_id; | ||
2408 | 2408 | ||
2409 | ath6kl_dbg(ATH6KL_DBG_HTC, | 2409 | ath6kl_dbg(ATH6KL_DBG_HTC, |
2410 | "htc connect service target 0x%p service id 0x%x\n", | 2410 | "htc connect service target 0x%p service id 0x%x\n", |
@@ -2448,8 +2448,9 @@ int ath6kl_htc_conn_service(struct htc_target *target, | |||
2448 | } | 2448 | } |
2449 | 2449 | ||
2450 | resp_msg = (struct htc_conn_service_resp *)rx_pkt->buf; | 2450 | resp_msg = (struct htc_conn_service_resp *)rx_pkt->buf; |
2451 | msg_id = le16_to_cpu(resp_msg->msg_id); | ||
2451 | 2452 | ||
2452 | if ((le16_to_cpu(resp_msg->msg_id) != HTC_MSG_CONN_SVC_RESP_ID) || | 2453 | if ((msg_id != HTC_MSG_CONN_SVC_RESP_ID) || |
2453 | (rx_pkt->act_len < sizeof(*resp_msg))) { | 2454 | (rx_pkt->act_len < sizeof(*resp_msg))) { |
2454 | status = -ENOMEM; | 2455 | status = -ENOMEM; |
2455 | goto fail_tx; | 2456 | goto fail_tx; |
diff --git a/drivers/net/wireless/ath/ath6kl/init.c b/drivers/net/wireless/ath/ath6kl/init.c index c7d514995b09..231675d4bf70 100644 --- a/drivers/net/wireless/ath/ath6kl/init.c +++ b/drivers/net/wireless/ath/ath6kl/init.c | |||
@@ -75,7 +75,7 @@ static const struct ath6kl_hw hw_list[] = { | |||
75 | }, | 75 | }, |
76 | 76 | ||
77 | .fw_board = AR6003_HW_2_1_1_BOARD_DATA_FILE, | 77 | .fw_board = AR6003_HW_2_1_1_BOARD_DATA_FILE, |
78 | .fw_default_board = AR6003_HW_2_1_1_DEFAULT_BOARD_DATA_FILE, | 78 | .fw_default_board = AR6003_HW_2_1_1_DEFAULT_BOARD_DATA_FILE, |
79 | }, | 79 | }, |
80 | { | 80 | { |
81 | .id = AR6004_HW_1_0_VERSION, | 81 | .id = AR6004_HW_1_0_VERSION, |
@@ -394,7 +394,7 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx) | |||
394 | 394 | ||
395 | if (ar->conf_flags & ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN) { | 395 | if (ar->conf_flags & ATH6KL_CONF_IGNORE_PS_FAIL_EVT_IN_SCAN) { |
396 | ret = ath6kl_wmi_pmparams_cmd(ar->wmi, idx, 0, 1, 0, 0, 1, | 396 | ret = ath6kl_wmi_pmparams_cmd(ar->wmi, idx, 0, 1, 0, 0, 1, |
397 | IGNORE_POWER_SAVE_FAIL_EVENT_DURING_SCAN); | 397 | IGNORE_PS_FAIL_DURING_SCAN); |
398 | if (ret) { | 398 | if (ret) { |
399 | ath6kl_err("unable to set power save fail event policy: %d\n", | 399 | ath6kl_err("unable to set power save fail event policy: %d\n", |
400 | ret); | 400 | ret); |
@@ -404,7 +404,7 @@ static int ath6kl_target_config_wlan_params(struct ath6kl *ar, int idx) | |||
404 | 404 | ||
405 | if (!(ar->conf_flags & ATH6KL_CONF_IGNORE_ERP_BARKER)) { | 405 | if (!(ar->conf_flags & ATH6KL_CONF_IGNORE_ERP_BARKER)) { |
406 | ret = ath6kl_wmi_set_lpreamble_cmd(ar->wmi, idx, 0, | 406 | ret = ath6kl_wmi_set_lpreamble_cmd(ar->wmi, idx, 0, |
407 | WMI_DONOT_IGNORE_BARKER_IN_ERP); | 407 | WMI_FOLLOW_BARKER_IN_ERP); |
408 | if (ret) { | 408 | if (ret) { |
409 | ath6kl_err("unable to set barker preamble policy: %d\n", | 409 | ath6kl_err("unable to set barker preamble policy: %d\n", |
410 | ret); | 410 | ret); |
diff --git a/drivers/net/wireless/ath/ath6kl/wmi.h b/drivers/net/wireless/ath/ath6kl/wmi.h index e0d9145c1cf7..4092e3e80790 100644 --- a/drivers/net/wireless/ath/ath6kl/wmi.h +++ b/drivers/net/wireless/ath/ath6kl/wmi.h | |||
@@ -1023,7 +1023,7 @@ struct wmi_power_mode_cmd { | |||
1023 | */ | 1023 | */ |
1024 | enum power_save_fail_event_policy { | 1024 | enum power_save_fail_event_policy { |
1025 | SEND_POWER_SAVE_FAIL_EVENT_ALWAYS = 1, | 1025 | SEND_POWER_SAVE_FAIL_EVENT_ALWAYS = 1, |
1026 | IGNORE_POWER_SAVE_FAIL_EVENT_DURING_SCAN = 2, | 1026 | IGNORE_PS_FAIL_DURING_SCAN = 2, |
1027 | }; | 1027 | }; |
1028 | 1028 | ||
1029 | struct wmi_power_params_cmd { | 1029 | struct wmi_power_params_cmd { |
@@ -1221,7 +1221,7 @@ struct wmi_snr_threshold_params_cmd { | |||
1221 | 1221 | ||
1222 | enum wmi_preamble_policy { | 1222 | enum wmi_preamble_policy { |
1223 | WMI_IGNORE_BARKER_IN_ERP = 0, | 1223 | WMI_IGNORE_BARKER_IN_ERP = 0, |
1224 | WMI_DONOT_IGNORE_BARKER_IN_ERP | 1224 | WMI_FOLLOW_BARKER_IN_ERP, |
1225 | }; | 1225 | }; |
1226 | 1226 | ||
1227 | struct wmi_set_lpreamble_cmd { | 1227 | struct wmi_set_lpreamble_cmd { |