ath10k: refactor firmware images to struct ath10k_fw_components
authorKalle Valo <kvalo@qca.qualcomm.com>
Wed, 20 Apr 2016 16:44:51 +0000 (19:44 +0300)
committerKalle Valo <kvalo@qca.qualcomm.com>
Wed, 20 Apr 2016 17:00:23 +0000 (20:00 +0300)
commit7ebf721d0d47150f6e327a6ae2692779495a2c2a
treee57a6e49a4847ab4cc9fc63025981188281eed67
parent3fb55c79d092d085bddd4fc94f250acfc1275f3d
ath10k: refactor firmware images to struct ath10k_fw_components

To make it easier to share ath10k_core_fetch_board_data_api_n() with testmode.c
refactor all firmware components to struct ath10k_fw_components. This structure
will hold firmware related files, for example firmware-N.bin and board-N.bin.

For firmware-N.bin create a new struct ath10k_fw_file which contains the actual
firmware image as well as the parsed data from the image.

Modify ath10k_core_start() to take struct ath10k_fw_components() as an argument
which makes it possible in following patches to drop some ugly hacks from
testmode.c.

Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
drivers/net/wireless/ath/ath10k/core.c
drivers/net/wireless/ath/ath10k/core.h
drivers/net/wireless/ath/ath10k/debug.c
drivers/net/wireless/ath/ath10k/mac.c
drivers/net/wireless/ath/ath10k/swap.c
drivers/net/wireless/ath/ath10k/testmode.c