Commit 97b9608b authored by Brian Norris's avatar Brian Norris Committed by Kalle Valo

ath10k: ath10k_snoc_{read,write}32() should be static

They're provided as callbacks in ath10k_hif_ops and should be accessed
that way, if needed outside of snoc.c, and anyway, they're currently
unused outside snoc.c.
Signed-off-by: default avatarBrian Norris <briannorris@chromium.org>
Signed-off-by: default avatarKalle Valo <kvalo@codeaurora.org>
parent 82e60d92
...@@ -474,14 +474,14 @@ static struct service_to_pipe target_service_to_ce_map_wlan[] = { ...@@ -474,14 +474,14 @@ static struct service_to_pipe target_service_to_ce_map_wlan[] = {
}, },
}; };
void ath10k_snoc_write32(struct ath10k *ar, u32 offset, u32 value) static void ath10k_snoc_write32(struct ath10k *ar, u32 offset, u32 value)
{ {
struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar);
iowrite32(value, ar_snoc->mem + offset); iowrite32(value, ar_snoc->mem + offset);
} }
u32 ath10k_snoc_read32(struct ath10k *ar, u32 offset) static u32 ath10k_snoc_read32(struct ath10k *ar, u32 offset)
{ {
struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar); struct ath10k_snoc *ar_snoc = ath10k_snoc_priv(ar);
u32 val; u32 val;
......
...@@ -98,8 +98,6 @@ static inline struct ath10k_snoc *ath10k_snoc_priv(struct ath10k *ar) ...@@ -98,8 +98,6 @@ static inline struct ath10k_snoc *ath10k_snoc_priv(struct ath10k *ar)
return (struct ath10k_snoc *)ar->drv_priv; return (struct ath10k_snoc *)ar->drv_priv;
} }
void ath10k_snoc_write32(struct ath10k *ar, u32 offset, u32 value);
u32 ath10k_snoc_read32(struct ath10k *ar, u32 offset);
int ath10k_snoc_fw_indication(struct ath10k *ar, u64 type); int ath10k_snoc_fw_indication(struct ath10k *ar, u64 type);
#endif /* _SNOC_H_ */ #endif /* _SNOC_H_ */
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment