diff options
author | Erik Stromdahl <erik.stromdahl@gmail.com> | 2018-09-04 15:03:19 +0300 |
---|---|---|
committer | Kalle Valo <kvalo@codeaurora.org> | 2018-09-06 19:13:50 +0300 |
commit | c0d8d565787c5d8f7d4b0ae319dc1d44d69a51d9 (patch) | |
tree | 226b22a678f361fcab5a785f04ae31f9a8daa3ef /drivers/net/wireless/ath/ath10k/usb.c | |
parent | 39501ea64116c665e9de7cf6cce91a1defcdbae8 (diff) | |
download | linux-c0d8d565787c5d8f7d4b0ae319dc1d44d69a51d9.tar.xz |
ath10k: add struct ath10k_bus_params
This struct is used as argument to ath10k_core_register in order to
make it easier to add more bus parameters in the future.
Signed-off-by: Erik Stromdahl <erik.stromdahl@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/usb.c')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/usb.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/net/wireless/ath/ath10k/usb.c b/drivers/net/wireless/ath/ath10k/usb.c index d4803ff5a78a..275e00bafcb1 100644 --- a/drivers/net/wireless/ath/ath10k/usb.c +++ b/drivers/net/wireless/ath/ath10k/usb.c @@ -983,7 +983,7 @@ static int ath10k_usb_probe(struct usb_interface *interface, struct usb_device *dev = interface_to_usbdev(interface); int ret, vendor_id, product_id; enum ath10k_hw_rev hw_rev; - u32 chip_id; + struct ath10k_bus_params bus_params; /* Assumption: All USB based chipsets (so far) are QCA9377 based. * If there will be newer chipsets that does not use the hw reg @@ -1017,8 +1017,8 @@ static int ath10k_usb_probe(struct usb_interface *interface, ar->id.device = product_id; /* TODO: don't know yet how to get chip_id with USB */ - chip_id = 0; - ret = ath10k_core_register(ar, chip_id); + bus_params.chip_id = 0; + ret = ath10k_core_register(ar, &bus_params); if (ret) { ath10k_warn(ar, "failed to register driver core: %d\n", ret); goto err; |