ath10k: copy the whole struct ath10k_bus_params in ath10k_core_register()
authorKalle Valo <kvalo@codeaurora.org>
Mon, 11 Feb 2019 16:48:13 +0000 (18:48 +0200)
committerKalle Valo <kvalo@codeaurora.org>
Tue, 12 Feb 2019 18:49:55 +0000 (20:49 +0200)
commit01dc76dfdc917282121220abcc2ae0e7308b441f
tree8ef3e1527d044794aa071628a8b724f0605a44e0
parentbdf2bd9aa684511bcb4271f185f735525ca27a70
ath10k: copy the whole struct ath10k_bus_params in ath10k_core_register()

Instead of copying fields one by one copy the whole structure. This way there's
no need to modify the function every time we add a new field to the struct.

Compile tested only.

Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ath/ath10k/core.c