ATH11K Archive on lore.kernel.org
 help / color / mirror / Atom feed
From: Vasanthakumar Thiagarajan <vthiagar@codeaurora.org>
To: ath11k@lists.infradead.org
Subject: [PATCH bringup 3/5] ath11k: Move ath11k_ahb_read32() and ath11k_ahb_write32() to ahb.h
Date: Wed, 25 Sep 2019 10:13:57 +0530	[thread overview]
Message-ID: <1569386639-1242-3-git-send-email-vthiagar@codeaurora.org> (raw)
In-Reply-To: <1569386639-1242-1-git-send-email-vthiagar@codeaurora.org>

And define them as static inline.

Signed-off-by: Vasanthakumar Thiagarajan <vthiagar@codeaurora.org>
---
 drivers/net/wireless/ath/ath11k/ahb.c | 10 ----------
 drivers/net/wireless/ath/ath11k/ahb.h | 12 ++++++++++--
 2 files changed, 10 insertions(+), 12 deletions(-)

diff --git a/drivers/net/wireless/ath/ath11k/ahb.c b/drivers/net/wireless/ath/ath11k/ahb.c
index a5e6956..0f26979 100644
--- a/drivers/net/wireless/ath/ath11k/ahb.c
+++ b/drivers/net/wireless/ath/ath11k/ahb.c
@@ -434,16 +434,6 @@ enum ext_irq_num {
 	tcl2host_status_ring,
 };
 
-inline u32 ath11k_ahb_read32(struct ath11k_base *ab, u32 offset)
-{
-	return ioread32(ab->mem + offset);
-}
-
-inline void ath11k_ahb_write32(struct ath11k_base *ab, u32 offset, u32 value)
-{
-	iowrite32(value, ab->mem + offset);
-}
-
 static void ath11k_ahb_kill_tasklets(struct ath11k_base *ab)
 {
 	int i;
diff --git a/drivers/net/wireless/ath/ath11k/ahb.h b/drivers/net/wireless/ath/ath11k/ahb.h
index 8a6b308..4646f1b 100644
--- a/drivers/net/wireless/ath/ath11k/ahb.h
+++ b/drivers/net/wireless/ath/ath11k/ahb.h
@@ -10,8 +10,16 @@
 #define ATH11K_AHB_RECOVERY_TIMEOUT (3 * HZ)
 struct ath11k_base;
 
-u32 ath11k_ahb_read32(struct ath11k_base *ab, u32 address);
-void ath11k_ahb_write32(struct ath11k_base *ab, u32 address, u32 data);
+static inline u32 ath11k_ahb_read32(struct ath11k_base *ab, u32 offset)
+{
+	return ioread32(ab->mem + offset);
+}
+
+static inline void ath11k_ahb_write32(struct ath11k_base *ab, u32 offset, u32 value)
+{
+	iowrite32(value, ab->mem + offset);
+}
+
 void ath11k_ahb_ext_irq_enable(struct ath11k_base *ab);
 void ath11k_ahb_ext_irq_disable(struct ath11k_base *ab);
 int ath11k_ahb_start(struct ath11k_base *ab);
-- 
1.9.1


_______________________________________________
ath11k mailing list
ath11k@lists.infradead.org
http://lists.infradead.org/mailman/listinfo/ath11k

  parent reply	other threads:[~2019-09-25  4:47 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2019-09-25  4:43 [PATCH bringup 1/5] ath11k: Use C99 structure initialization for target_service_to_ce_map_wlan[] Vasanthakumar Thiagarajan
2019-09-25  4:43 ` [PATCH bringup 2/5] ath11k: Remove ring mask macros defined for 0 Vasanthakumar Thiagarajan
2019-09-25  4:43 ` Vasanthakumar Thiagarajan [this message]
2019-09-25  4:43 ` [PATCH bringup 4/5] ath11k: Avoid code duplication in set/clear of a register bit values Vasanthakumar Thiagarajan
2019-09-25  4:43 ` [PATCH bringup 5/5] ath11k: Few clean ups in comments Vasanthakumar Thiagarajan
2019-09-27 14:48 ` [PATCH bringup 1/5] ath11k: Use C99 structure initialization for target_service_to_ce_map_wlan[] Kalle Valo
2019-09-27 14:56   ` Kalle Valo
2019-09-27 15:05 ` Kalle Valo

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1569386639-1242-3-git-send-email-vthiagar@codeaurora.org \
    --to=vthiagar@codeaurora.org \
    --cc=ath11k@lists.infradead.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox