linux-wireless.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Larry Finger <Larry.Finger@lwfinger.net>
To: Joe Perches <joe@perches.com>
Cc: linville@tuxdriver.com, linux-wireless@vger.kernel.org
Subject: Re: [PATCH NEXT 2/2] rtlwifi: rtl8192c: rtl8192ce: rtl8192cu: rtl8192se: rtl8192de: Shorten some variable names
Date: Fri, 12 Oct 2012 12:52:43 -0500	[thread overview]
Message-ID: <507858EB.10403@lwfinger.net> (raw)
In-Reply-To: <1350060043.2243.28.camel@joe-AO722>

On 10/12/2012 11:40 AM, Joe Perches wrote:
> On Fri, 2012-10-12 at 10:52 -0500, Larry Finger wrote:
>> The private data areas for these drivers contain some very long variable
>> names that cause difficulty in fitting source lines to an 80-character
>> limit.
>
> []
>
>> diff --git a/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c b/drivers/net/wireless/rtlwifi/rtl8192c/dm_common.c
> []
>> @@ -177,8 +177,8 @@ static void rtl92c_dm_diginit(struct ieee80211_hw *hw)
>>   	dm_digtable->rx_gain_range_max = DM_DIG_MAX;
>>   	dm_digtable->rx_gain_range_min = DM_DIG_MIN;
>>   	dm_digtable->backoff_val = DM_DIG_BACKOFF_DEFAULT;
>> -	dm_digtable->backoff_val_range_max = DM_DIG_BACKOFF_MAX;
>> -	dm_digtable->backoff_val_range_min = DM_DIG_BACKOFF_MIN;
>> +	dm_digtable->back_range_max = DM_DIG_BACKOFF_MAX;
>> +	dm_digtable->back_range_min = DM_DIG_BACKOFF_MIN;
>
> Hi Larry, good idea but it looks like maybe you grepped
> for long variable names with something like "\w{20,}".
>
> Please try to convert all the similarly grouped names at
> the same time.
>
> iow: backoff_val should probably be changed too.
>
> I didn't read any further.  cheers, Joe

Actually, I changed the ones that caused problems for line wrapping in the 
drivers, rather than searching for a particular length.

I will make the change.

Larry



      reply	other threads:[~2012-10-12 17:52 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-12 15:52 [PATCH NEXT 0/2] rtlwifi: Add support for B-CUT RTL8188CE and shorten some variable names Larry Finger
2012-10-12 15:52 ` [PATCH NEXT 1/2] rtlwifi: rtl8192c: rtl8192ce: Add support for B-CUT version of RTL8188CE Larry Finger
2012-10-12 15:52 ` [PATCH NEXT 2/2] rtlwifi: rtl8192c: rtl8192ce: rtl8192cu: rtl8192se: rtl8192de: Shorten some variable names Larry Finger
2012-10-12 16:40   ` Joe Perches
2012-10-12 17:52     ` Larry Finger [this message]

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=507858EB.10403@lwfinger.net \
    --to=larry.finger@lwfinger.net \
    --cc=joe@perches.com \
    --cc=linux-wireless@vger.kernel.org \
    --cc=linville@tuxdriver.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).