All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Tobin C. Harding" <me@tobin.cc>
To: Janusz Lisiecki <janusz.lisiecki@gmail.com>
Cc: Greg Kroah-Hartman <gregkh@linuxfoundation.org>,
	Linux Driver Project Developer List
	<driverdev-devel@linuxdriverproject.org>,
	Wolfram Sang <wsa@the-dreams.de>
Subject: Re: [PATCH 4/8] staging: ks7010: avoid CamelCase: link_ap_info_t fields
Date: Sun, 30 Apr 2017 18:59:02 +1000	[thread overview]
Message-ID: <20170430085902.GA14735@eros> (raw)
In-Reply-To: <1493499528-27307-5-git-send-email-janusz.lisiecki@gmail.com>

On Sat, Apr 29, 2017 at 10:58:44PM +0200, Janusz Lisiecki wrote:
> Replace CamelCase struct field names with underscores to comply
> with the standard kernel coding style.
> Changed:
> - FhParms_t
> - DsParms_t
> - CfParms_t
> - IbssParms_t
> - ErpParams_t
> 
> Signed-off-by: Janusz Lisiecki <janusz.lisiecki@gmail.com>
> ---
>  drivers/staging/ks7010/ks_hostif.h | 20 ++++++++++----------
>  1 file changed, 10 insertions(+), 10 deletions(-)
> 
> diff --git a/drivers/staging/ks7010/ks_hostif.h b/drivers/staging/ks7010/ks_hostif.h
> index ba0bd92..769dbe8 100644
> --- a/drivers/staging/ks7010/ks_hostif.h
> +++ b/drivers/staging/ks7010/ks_hostif.h
> @@ -239,25 +239,25 @@ struct rate_set8_t {
>  	u8 rate_pad;
>  } __packed;
>  
> -struct FhParms_t {
> +struct fh_parms_t {
>  	u16 dwell_time;
>  	u8 hop_set;
>  	u8 hop_pattern;
>  	u8 hop_index;
>  } __packed;
>  
> -struct DsParms_t {
> +struct ds_parms_t {
>  	u8 channel;
>  } __packed;
>  
> -struct CfParms_t {
> +struct cf_parms_t {
>  	u8 count;
>  	u8 period;
>  	u16 maxDuration;
>  	u16 durRemaining;
>  } __packed;
>  
> -struct IbssParms_t {
> +struct ibss_parms_t {
>  	u16 atimWindow;
>  } __packed;
>  
> @@ -267,7 +267,7 @@ struct rsn_t {
>  	u8 body[RSN_BODY_SIZE];
>  } __packed;
>  
> -struct ErpParams_t {
> +struct erp_params_t {
>  	u8 erp_info;
>  } __packed;
>  
> @@ -313,11 +313,11 @@ struct link_ap_info_t {
>  	u16 beacon_period;	/* +10 */
>  	u16 capability;	/* +12 */
>  	struct rate_set8_t rate_set;	/* +14 */
> -	struct FhParms_t fh_parameter;	/* +24 */
> -	struct DsParms_t ds_parameter;	/* +29 */
> -	struct CfParms_t cf_parameter;	/* +30 */
> -	struct IbssParms_t ibss_parameter;	/* +36 */
> -	struct ErpParams_t erp_parameter;	/* +38 */
> +	struct fh_parms_t fh_parameter;	/* +24 */
> +	struct ds_parms_t ds_parameter;	/* +29 */
> +	struct cf_parms_t cf_parameter;	/* +30 */
> +	struct ibss_parms_t ibss_parameter;	/* +36 */
> +	struct erp_params_t erp_parameter;	/* +38 */

4 out of 5 of these struct members appear to be unused in the
driver. I think the patch is good as it is though because I don't
think we should be chopping up struct descriptions until we are
testing on hardware.

Only my opinion, based more on a hunch than on any real experience.

thanks,
Tobin.

>  	u8 pad1;	/* +39 */
>  	struct rate_set8_t ext_rate_set;	/* +40 */
>  	u8 DTIM_period;	/* +50 */
> -- 
> 1.9.1
> 
> _______________________________________________
> devel mailing list
> devel@linuxdriverproject.org
> http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel
_______________________________________________
devel mailing list
devel@linuxdriverproject.org
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel

  reply	other threads:[~2017-04-30  8:59 UTC|newest]

Thread overview: 34+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-04-29 20:58 [PATCH 0/8] Avoid CamelCases in ks7010 driver Janusz Lisiecki
2017-04-29 20:58 ` [PATCH 1/8] staging: ks7010: avoid CamelCase in fields of struct local_gain_t Janusz Lisiecki
2017-05-07  3:37   ` Greg Kroah-Hartman
2017-05-12 13:46     ` Janusz Lisiecki
2017-05-07  7:03   ` [PATCH v2 1/8] staging: ks7010: avoid CamelCase: receiveDTIMs Janusz Lisiecki
2017-05-12  9:10     ` Greg Kroah-Hartman
2017-04-29 20:58 ` [PATCH 2/8] " Janusz Lisiecki
2017-04-29 20:58 ` [PATCH 3/8] staging: ks7010: avoid CamelCase: FhParms_t fields Janusz Lisiecki
2017-04-29 20:58 ` [PATCH 4/8] staging: ks7010: avoid CamelCase: link_ap_info_t fields Janusz Lisiecki
2017-04-30  8:59   ` Tobin C. Harding [this message]
2017-04-29 20:58 ` [PATCH 5/8] staging: ks7010: avoid CamelCase: CfParms_t fields Janusz Lisiecki
2017-04-29 20:58 ` [PATCH 6/8] staging: ks7010: avoid CamelCase: atimWindow Janusz Lisiecki
2017-04-29 20:58 ` [PATCH 7/8] staging: ks7010: avoid CamelCase: reqIEs_size and respIEs_size Janusz Lisiecki
2017-04-29 20:58 ` [PATCH 8/8] staging: ks7010: avoid CamelCase: local variables in ks_hostif.c Janusz Lisiecki
2017-05-07  7:07   ` [PATCH v2 " Janusz Lisiecki
2017-04-30  9:01 ` [PATCH 0/8] Avoid CamelCases in ks7010 driver Tobin C. Harding
2017-05-12 13:42 ` [PATCH v2 " Janusz Lisiecki
2017-05-12 13:42   ` [PATCH v2 1/8] staging: ks7010: avoid CamelCase in fields of struct local_gain_t Janusz Lisiecki
2017-05-15 10:03     ` Greg Kroah-Hartman
2017-05-12 13:42   ` [PATCH v2 2/8] staging: ks7010: avoid CamelCase: receiveDTIMs Janusz Lisiecki
2017-05-12 13:42   ` [PATCH v2 3/8] staging: ks7010: avoid CamelCase: FhParms_t fields Janusz Lisiecki
2017-05-12 13:42   ` [PATCH v2 4/8] staging: ks7010: avoid CamelCase: link_ap_info_t fields Janusz Lisiecki
2017-05-12 13:42   ` [PATCH v2 5/8] staging: ks7010: avoid CamelCase: CfParms_t fields Janusz Lisiecki
2017-05-12 13:42   ` [PATCH v2 6/8] staging: ks7010: avoid CamelCase: atimWindow Janusz Lisiecki
2017-05-12 13:42   ` [PATCH v2 7/8] staging: ks7010: avoid CamelCase: reqIEs_size and respIEs_size Janusz Lisiecki
2017-05-12 13:42   ` [PATCH v2 8/8] staging: ks7010: avoid CamelCase: local variables in ks_hostif.c Janusz Lisiecki
2017-05-15 18:55   ` [PATCH v3 0/2] Avoid CamelCases in ks7010 driver Janusz Lisiecki
2017-05-15 18:55     ` [PATCH v3 1/2] staging: ks7010: avoid CamelCase: receiveDTIMs Janusz Lisiecki
2017-05-16 11:53       ` Greg Kroah-Hartman
2017-05-15 18:55     ` [PATCH v3 2/2] staging: ks7010: avoid CamelCase: local variables in ks_hostif.c Janusz Lisiecki
2017-05-16 15:29     ` [PATCH v4 0/1] Avoid CamelCases in ks7010 driver Janusz Lisiecki
2017-05-16 15:29       ` [PATCH v4 1/1] staging: ks7010: avoid CamelCase: receiveDTIMs Janusz Lisiecki
2017-05-16 15:34       ` [PATCH v5 0/1] Avoid CamelCases in ks7010 driver Janusz Lisiecki
2017-05-16 15:34         ` [PATCH v5 1/1] staging: ks7010: avoid CamelCase: receiveDTIMs Janusz Lisiecki

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=20170430085902.GA14735@eros \
    --to=me@tobin.cc \
    --cc=driverdev-devel@linuxdriverproject.org \
    --cc=gregkh@linuxfoundation.org \
    --cc=janusz.lisiecki@gmail.com \
    --cc=wsa@the-dreams.de \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.