linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Hauke Mehrtens <hauke@hauke-m.de>
To: Julian Calaby <julian.calaby@gmail.com>
Cc: linville@tuxdriver.com, zajec5@gmail.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH] b43: use bcma_pmu_spuravoid_pllupdate()
Date: Sat, 23 Mar 2013 16:29:55 +0100	[thread overview]
Message-ID: <514DCA73.7000403@hauke-m.de> (raw)
In-Reply-To: <514DC055.4070402@hauke-m.de>

On 03/23/2013 03:46 PM, Hauke Mehrtens wrote:
> On 03/21/2013 11:41 PM, Julian Calaby wrote:
>> Hi Hauke,
>>
>> On Fri, Mar 22, 2013 at 4:11 AM, Hauke Mehrtens <hauke@hauke-m.de> wrote:
>>> Do not implement this in b43, but use bcma_pmu_spuravoid_pllupdate().
>>>
>>> Signed-off-by: Hauke Mehrtens <hauke@hauke-m.de>
>>> ---
>>>  drivers/net/wireless/b43/phy_n.c |   92 ++++++++------------------------------
>>>  1 file changed, 18 insertions(+), 74 deletions(-)
>>>
>>> diff --git a/drivers/net/wireless/b43/phy_n.c b/drivers/net/wireless/b43/phy_n.c
>>> index 3c35382..4130c04 100644
>>> --- a/drivers/net/wireless/b43/phy_n.c
>>> +++ b/drivers/net/wireless/b43/phy_n.c
>>> @@ -5220,19 +5150,33 @@ static void b43_nphy_channel_setup(struct b43_wldev *dev,
>>>
>>>         if (dev->phy.rev >= 3 &&
>>>             dev->phy.n->spur_avoid != B43_SPUR_AVOID_DISABLE) {
>>> -               bool avoid = false;
>>> +               struct bcma_drv_cc __maybe_unused *cc;
>>
>> Could this go inside the #ifdef in the switch statement - that way the
>> __maybe_unused should be unnecessary?
> 
> No that is not possible, C forbids it there:
> 
> drivers/net/wireless/b43/phy_n.c: In function ‘b43_nphy_channel_setup’:
> drivers/net/wireless/b43/phy_n.c:5169:4: error: a label can only be part
> of a statement and a declaration is not a statement
> 
>>
>>> +               int avoid = 0;
>>
>> I though that bools were converted to ints exactly as you've converted
>> the avoid variable here.
> 
> Yes I will change that.
> 
I thought about this and I would like to stay with int, because the
functions wants an int and bcma_pmu_spuravoid_pllupdate() also handles
avoid == 2.

Hauke

  reply	other threads:[~2013-03-23 15:30 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-03-21 17:11 [PATCH] b43: use bcma_pmu_spuravoid_pllupdate() Hauke Mehrtens
2013-03-21 22:41 ` Julian Calaby
2013-03-23 14:46   ` Hauke Mehrtens
2013-03-23 15:29     ` Hauke Mehrtens [this message]
2013-03-23 19:34 ` Rafał Miłecki
2013-03-23 19:46   ` Hauke Mehrtens
2013-03-23 19:51     ` Rafał Miłecki
  -- strict thread matches above, loose matches on Subject: below --
2013-04-11 12:39 Hauke Mehrtens
2013-04-12  6:26 ` Rafał Miłecki
2013-04-12 12:34   ` Hauke Mehrtens

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=514DCA73.7000403@hauke-m.de \
    --to=hauke@hauke-m.de \
    --cc=julian.calaby@gmail.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.com \
    --cc=zajec5@gmail.com \
    /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;
as well as URLs for NNTP newsgroup(s).