From: Kalle Valo <kvalo@qca.qualcomm.com>
To: ath9k-devel@lists.ath9k.org
Subject: [ath9k-devel] [PATCH] ath10k: split ath10k_pci_target_ps_control
Date: Mon, 22 Apr 2013 12:38:49 +0300 [thread overview]
Message-ID: <87txmyj45y.fsf@kamboji.qca.qualcomm.com> (raw)
In-Reply-To: <517502D4.90303@tieto.com> (Markowski Bartosz's message of "Mon, 22 Apr 2013 11:28:52 +0200")
Markowski Bartosz <bartosz.markowski@tieto.com> writes:
> On 22/04/13 10:50, Bartosz.Markowski at tieto.com wrote:
>>> -----Original Message-----
>>> From: Kalle Valo [mailto:kvalo at qca.qualcomm.com]
>>>
>>> And I think we can change ath10k_target_ps to static now.
>> Yes. I will send a patch-set with this and remaining rebases after you iterate over the list.
>>
> hmm, seems like we actually can't make it static yet.
> The ath10k_pci_sleep/wake() are called from ce and pci code.
Sorry, I don't understand how that prevents making the variable static.
Just to be clear, I was thinking doing something like this:
diff --git a/drivers/net/wireless/ath/ath10k/pci.c b/drivers/net/wireless/ath/ath10k/pci.c
index 4bba532..9c650df 100644
--- a/drivers/net/wireless/ath/ath10k/pci.c
+++ b/drivers/net/wireless/ath/ath10k/pci.c
@@ -33,7 +33,7 @@
#include "ce.h"
#include "pci.h"
-unsigned int ath10k_target_ps;
+static unsigned int ath10k_target_ps;
module_param(ath10k_target_ps, uint, 0644);
MODULE_PARM_DESC(ath10k_target_ps, "Enable ath10k Target (SoC) PS option");
diff --git a/drivers/net/wireless/ath/ath10k/pci.h b/drivers/net/wireless/ath/ath10k/pci.h
index a3b5e88..e0ed0b0 100644
--- a/drivers/net/wireless/ath/ath10k/pci.h
+++ b/drivers/net/wireless/ath/ath10k/pci.h
@@ -353,8 +353,6 @@ static inline void WAR_CE_SRC_RING_WRITE_IDX_SET(struct ath10k *ar,
}
}
-extern unsigned int ath10k_target_ps;
-
void ath10k_pci_wake(struct ath10k *ar);
void ath10k_pci_sleep(struct ath10k *ar);
next prev parent reply other threads:[~2013-04-22 9:38 UTC|newest]
Thread overview: 6+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-04-18 12:47 [ath9k-devel] [PATCH] ath10k: split ath10k_pci_target_ps_control Bartosz Markowski
2013-04-22 8:46 ` Kalle Valo
2013-04-22 8:50 ` Bartosz.Markowski at tieto.com
2013-04-22 9:28 ` Markowski Bartosz
2013-04-22 9:38 ` Kalle Valo [this message]
2013-04-22 9:44 ` Markowski Bartosz
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=87txmyj45y.fsf@kamboji.qca.qualcomm.com \
--to=kvalo@qca.qualcomm.com \
--cc=ath9k-devel@lists.ath9k.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