summaryrefslogtreecommitdiff
path: root/drivers/net/wireless/ath/ath10k/swap.c
diff options
context:
space:
mode:
authorKalle Valo <kvalo@qca.qualcomm.com>2016-04-20 19:46:16 +0300
committerKalle Valo <kvalo@qca.qualcomm.com>2016-04-20 20:00:30 +0300
commit1fe63c9ca8913eb7af6c428cf81abad29e0bc9d6 (patch)
tree1f5a43e1853701e450622c3e8a27c8c4c9e1dcc7 /drivers/net/wireless/ath/ath10k/swap.c
parent9dfe240b4d684f17efa861e92e45dc949b0049ed (diff)
downloadlinux-1fe63c9ca8913eb7af6c428cf81abad29e0bc9d6.tar.xz
ath10k: remove enum ath10k_swap_code_seg_bin_type
It's not needed for anything so just get rid of it. Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/swap.c')
-rw-r--r--drivers/net/wireless/ath/ath10k/swap.c22
1 files changed, 6 insertions, 16 deletions
diff --git a/drivers/net/wireless/ath/ath10k/swap.c b/drivers/net/wireless/ath/ath10k/swap.c
index 47d449bac86d..0c5f5863dac8 100644
--- a/drivers/net/wireless/ath/ath10k/swap.c
+++ b/drivers/net/wireless/ath/ath10k/swap.c
@@ -134,27 +134,17 @@ ath10k_swap_code_seg_alloc(struct ath10k *ar, size_t swap_bin_len)
return seg_info;
}
-int ath10k_swap_code_seg_configure(struct ath10k *ar,
- enum ath10k_swap_code_seg_bin_type type)
+int ath10k_swap_code_seg_configure(struct ath10k *ar)
{
int ret;
struct ath10k_swap_code_seg_info *seg_info = NULL;
- switch (type) {
- case ATH10K_SWAP_CODE_SEG_BIN_TYPE_FW:
- if (!ar->swap.firmware_swap_code_seg_info)
- return 0;
-
- ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot found firmware code swap binary\n");
- seg_info = ar->swap.firmware_swap_code_seg_info;
- break;
- default:
- case ATH10K_SWAP_CODE_SEG_BIN_TYPE_OTP:
- case ATH10K_SWAP_CODE_SEG_BIN_TYPE_UTF:
- ath10k_warn(ar, "ignoring unknown code swap binary type %d\n",
- type);
+ if (!ar->swap.firmware_swap_code_seg_info)
return 0;
- }
+
+ ath10k_dbg(ar, ATH10K_DBG_BOOT, "boot found firmware code swap binary\n");
+
+ seg_info = ar->swap.firmware_swap_code_seg_info;
ret = ath10k_bmi_write_memory(ar, seg_info->target_addr,
&seg_info->seg_hw_info,