Skip to content

Commit

Permalink
staging: rtl8712: Improve naming of include hearder guards
Browse files Browse the repository at this point in the history
Choose a better name for the include hearder guard used in rtl871x_io.h.
'_IO_H_' is to generic and does not match the comment after the #endif.
Use '_RTL871X_IO_H_' instead.

Also make the comments in the #endif /* XXX */ match the name used in
#ifndef.

Signed-off-by: Christophe JAILLET <christophe.jaillet@wanadoo.fr>
Link: https://lore.kernel.org/r/20190818150609.3376-1-christophe.jaillet@wanadoo.fr
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information
Christophe JAILLET authored and Greg Kroah-Hartman committed Aug 21, 2019
1 parent bfc4ccb commit f55ef00
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 6 deletions.
7 changes: 3 additions & 4 deletions drivers/staging/rtl8712/rtl871x_io.h
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
* Larry Finger <Larry.Finger@lwfinger.net>
*
******************************************************************************/
#ifndef _IO_H_
#define _IO_H_
#ifndef _RTL871X_IO_H_
#define _RTL871X_IO_H_

#include "osdep_service.h"
#include "osdep_intf.h"
Expand Down Expand Up @@ -234,5 +234,4 @@ void r8712_write_port(struct _adapter *adapter, u32 addr, u32 cnt, u8 *pmem);
uint r8712_alloc_io_queue(struct _adapter *adapter);
void r8712_free_io_queue(struct _adapter *adapter);

#endif /*_RTL8711_IO_H_*/

#endif /*_RTL871X_IO_H_*/
3 changes: 1 addition & 2 deletions drivers/staging/rtl8712/rtl871x_rf.h
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,4 @@ enum {
RTL8712_RFC_2T2R = 0x22
};

#endif /*_RTL8711_RF_H_*/

#endif /*__RTL871X_RF_H_*/

0 comments on commit f55ef00

Please sign in to comment.