aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless/ath/ath10k/pci.h
diff options
context:
space:
mode:
authorMichal Kazior <michal.kazior@tieto.com>2014-08-07 11:03:27 +0200
committerKalle Valo <kvalo@qca.qualcomm.com>2014-08-12 10:53:42 +0300
commite7b541948b7ae542267257a6183341f6a92ed1b8 (patch)
treed26ec8cdf23f665537e0113e3b01694887c89484 /drivers/net/wireless/ath/ath10k/pci.h
parentath10k: introduce a stricter scan state machine (diff)
downloadlinux-dev-e7b541948b7ae542267257a6183341f6a92ed1b8.tar.xz
linux-dev-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.h2
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)