summaryrefslogtreecommitdiffstats
path: root/drivers/net/wireless
diff options
context:
space:
mode:
authorUwe Kleine-König <u.kleine-koenig@pengutronix.de>2023-06-01 10:25:56 +0200
committerKalle Valo <quic_kvalo@quicinc.com>2023-06-09 15:27:58 +0300
commit6358b10371579e1068b6f236a3ccd5c2fef995e6 (patch)
treecd03f6b29cab985a453cbad58db19f0540f690e4 /drivers/net/wireless
parentd457bff2763366513bce36c2fc51fcba12a2f912 (diff)
downloadlinux-stable-6358b10371579e1068b6f236a3ccd5c2fef995e6.tar.gz
linux-stable-6358b10371579e1068b6f236a3ccd5c2fef995e6.tar.bz2
linux-stable-6358b10371579e1068b6f236a3ccd5c2fef995e6.zip
wifi: atk10k: Don't opencode ath10k_pci_priv() in ath10k_ahb_priv()
This introduces no changes in the compiled result (tested for an ARCH=arm allmodconfig build). Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de> Signed-off-by: Kalle Valo <quic_kvalo@quicinc.com> Link: https://lore.kernel.org/r/20230601082556.2738446-5-u.kleine-koenig@pengutronix.de
Diffstat (limited to 'drivers/net/wireless')
-rw-r--r--drivers/net/wireless/ath/ath10k/ahb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/net/wireless/ath/ath10k/ahb.c b/drivers/net/wireless/ath/ath10k/ahb.c
index 632da4c5e5da..4a006fb4d424 100644
--- a/drivers/net/wireless/ath/ath10k/ahb.c
+++ b/drivers/net/wireless/ath/ath10k/ahb.c
@@ -27,7 +27,7 @@ MODULE_DEVICE_TABLE(of, ath10k_ahb_of_match);
static inline struct ath10k_ahb *ath10k_ahb_priv(struct ath10k *ar)
{
- return &((struct ath10k_pci *)ar->drv_priv)->ahb[0];
+ return &ath10k_pci_priv(ar)->ahb[0];
}
static void ath10k_ahb_write32(struct ath10k *ar, u32 offset, u32 value)