ath11k: don't use defines for hw specific firmware directories
authorKalle Valo <kvalo@codeaurora.org>
Tue, 16 Jun 2020 14:00:50 +0000 (17:00 +0300)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 23 Jun 2020 07:51:51 +0000 (10:51 +0300)
commit34d9fc80bac34ea4128daf55a1a85161ccb55d9b
tree023f3286964987a5917a01ab602ef05128e39163
parent7b57b2ddec21c1a660af2d832939d392081e515f
ath11k: don't use defines for hw specific firmware directories

The downside of using defines in struct ath11k_hw_params.fw.dir is that it's
easy to get it wrong as the full path is not visible. So drop the use of
defines and instead create the patch runtime using a static inline function
ath11k_core_create_firmware_path(). Hopefully this reduces the chances of using
incorrect firmware path.

No functional changes. Compile tested only.

Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Link: https://lore.kernel.org/r/1592316055-24958-8-git-send-email-kvalo@codeaurora.org
drivers/net/wireless/ath/ath11k/core.c
drivers/net/wireless/ath/ath11k/core.h
drivers/net/wireless/ath/ath11k/hw.h
drivers/net/wireless/ath/ath11k/qmi.c