aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath
diff options
context:
space:
mode:
authorKalle Valo <kvalo@codeaurora.org>2019-02-11 18:48:13 +0200
committerKalle Valo <kvalo@codeaurora.org>2019-02-12 20:49:55 +0200
commit01dc76dfdc917282121220abcc2ae0e7308b441f (patch)
tree8ef3e1527d044794aa071628a8b724f0605a44e0 /drivers/net/wireless/ath
parentath10k: fix documentation in ath10k_wow_convert_8023_to_80211() (diff)
downloadlinux-dev-01dc76dfdc917282121220abcc2ae0e7308b441f.tar.xz
linux-dev-01dc76dfdc917282121220abcc2ae0e7308b441f.zip
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>
Diffstat (limited to 'drivers/net/wireless/ath')
-rw-r--r--drivers/net/wireless/ath/ath10k/core.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath10k/core.c b/drivers/net/wireless/ath/ath10k/core.c
index 6c1dd5f8d012..a1b2aea4a77f 100644
--- a/drivers/net/wireless/ath/ath10k/core.c
+++ b/drivers/net/wireless/ath/ath10k/core.c
@@ -2997,9 +2997,8 @@ err:
int ath10k_core_register(struct ath10k *ar,
const struct ath10k_bus_params *bus_params)
{
- ar->bus_param.chip_id = bus_params->chip_id;
- ar->bus_param.dev_type = bus_params->dev_type;
- ar->bus_param.link_can_suspend = bus_params->link_can_suspend;
+ ar->bus_param = *bus_params;
+
queue_work(ar->workqueue, &ar->register_work);
return 0;