diff options
author | Michal Kazior <michal.kazior@tieto.com> | 2014-08-07 11:03:27 +0200 |
---|---|---|
committer | Kalle Valo <kvalo@qca.qualcomm.com> | 2014-08-12 10:53:42 +0300 |
commit | e7b541948b7ae542267257a6183341f6a92ed1b8 (patch) | |
tree | d26ec8cdf23f665537e0113e3b01694887c89484 /drivers/net/wireless/ath/ath10k/pci.h | |
parent | 5c81c7fd62004be13a3c9345ca25607d14862cc4 (diff) | |
download | talos-obmc-linux-e7b541948b7ae542267257a6183341f6a92ed1b8.tar.gz talos-obmc-linux-e7b541948b7ae542267257a6183341f6a92ed1b8.zip |
ath10k: embed ar_pci inside ar
Use the common convention of embedding private
structures inside parent structures. This
reduces allocations and simplifies pci probing
code.
Signed-off-by: Michal Kazior <michal.kazior@tieto.com>
Signed-off-by: Kalle Valo <kvalo@qca.qualcomm.com>
Diffstat (limited to 'drivers/net/wireless/ath/ath10k/pci.h')
-rw-r--r-- | drivers/net/wireless/ath/ath10k/pci.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/pci.h b/drivers/net/wireless/ath/ath10k/pci.h index 940129209990..531c98aa4a86 100644 --- a/drivers/net/wireless/ath/ath10k/pci.h +++ b/drivers/net/wireless/ath/ath10k/pci.h @@ -202,7 +202,7 @@ struct ath10k_pci { static inline struct ath10k_pci *ath10k_pci_priv(struct ath10k *ar) { - return ar->hif.priv; + return (struct ath10k_pci *)ar->drv_priv; } static inline u32 ath10k_pci_reg_read32(struct ath10k *ar, u32 addr) |