Re: [PATCH 01/10] staging:rtl8192u: remove typedef of enumeration TR_SELECT - Style

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Mon, Jul 16, 2018 at 10:41:38AM +0200, Greg KH wrote:
> On Fri, Jul 13, 2018 at 09:12:38PM +0100, John Whitmore wrote:
> > To clear a checkpatch issue removed the typedef of the enumeration TR_SELECT
> > this should not impact runtime code as it's only a coding style change.
> > 
> > Signed-off-by: John Whitmore <johnfwhitmore@xxxxxxxxx>
> > ---
> >  drivers/staging/rtl8192u/ieee80211/ieee80211.h      |  4 ++--
> >  drivers/staging/rtl8192u/ieee80211/rtl819x_BAProc.c | 10 +++++-----
> >  drivers/staging/rtl8192u/ieee80211/rtl819x_TS.h     |  4 ++--
> >  drivers/staging/rtl8192u/ieee80211/rtl819x_TSProc.c |  6 +++---
> >  4 files changed, 12 insertions(+), 12 deletions(-)
> > 
> > diff --git a/drivers/staging/rtl8192u/ieee80211/ieee80211.h b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
> > index 3b7968681f77..0fa55af7060a 100644
> > --- a/drivers/staging/rtl8192u/ieee80211/ieee80211.h
> > +++ b/drivers/staging/rtl8192u/ieee80211/ieee80211.h
> > @@ -2391,7 +2391,7 @@ int ieee80211_rx_DELBA(struct ieee80211_device *ieee, struct sk_buff *skb);
> >  void TsInitAddBA(struct ieee80211_device *ieee, PTX_TS_RECORD pTS,
> >  		 u8 Policy, u8 bOverwritePending);
> >  void TsInitDelBA(struct ieee80211_device *ieee,
> > -		 PTS_COMMON_INFO pTsCommonInfo, TR_SELECT TxRxSelect);
> > +		 PTS_COMMON_INFO pTsCommonInfo, enum TR_SELECT TxRxSelect);
> >  void BaSetupTimeOut(struct timer_list *t);
> >  void TxBaInactTimeout(struct timer_list *t);
> >  void RxBaInactTimeout(struct timer_list *t);
> > @@ -2402,7 +2402,7 @@ bool GetTs(
> >  	PTS_COMMON_INFO                 *ppTS,
> >  	u8                              *Addr,
> >  	u8                              TID,
> > -	TR_SELECT                       TxRxSelect,  //Rx:1, Tx:0
> > +	enum TR_SELECT                  TxRxSelect,  //Rx:1, Tx:0
> 
> This really should be "enum tr_select", right?  No ALL CAPS variable
> types please.
> 

Absolutely, I was trying to make small changes, not doing too much in a single
patch. I know there's a happy medium somewhere. I'll fix that up and resend
series again.

Cheers

John
_______________________________________________
devel mailing list
devel@xxxxxxxxxxxxxxxxxxxxxx
http://driverdev.linuxdriverproject.org/mailman/listinfo/driverdev-devel



[Index of Archives]     [Linux Driver Backports]     [DMA Engine]     [Linux GPIO]     [Linux SPI]     [Video for Linux]     [Linux USB Devel]     [Linux Coverity]     [Linux Audio Users]     [Linux Kernel]     [Linux SCSI]     [Yosemite Backpacking]
  Powered by Linux