mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-05-09 18:42:14 -04:00
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
This commit is contained in:
committed by
Kalle Valo
parent
d457bff276
commit
6358b10371
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user