Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

staging: rtl8712: Improve naming of include hearder guards

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>

authored by

Christophe JAILLET and committed by
Greg Kroah-Hartman
f55ef00e bfc4ccb1

+4 -6
+3 -4
drivers/staging/rtl8712/rtl871x_io.h
··· 11 11 * Larry Finger <Larry.Finger@lwfinger.net> 12 12 * 13 13 ******************************************************************************/ 14 - #ifndef _IO_H_ 15 - #define _IO_H_ 14 + #ifndef _RTL871X_IO_H_ 15 + #define _RTL871X_IO_H_ 16 16 17 17 #include "osdep_service.h" 18 18 #include "osdep_intf.h" ··· 234 234 uint r8712_alloc_io_queue(struct _adapter *adapter); 235 235 void r8712_free_io_queue(struct _adapter *adapter); 236 236 237 - #endif /*_RTL8711_IO_H_*/ 238 - 237 + #endif /*_RTL871X_IO_H_*/
+1 -2
drivers/staging/rtl8712/rtl871x_rf.h
··· 52 52 RTL8712_RFC_2T2R = 0x22 53 53 }; 54 54 55 - #endif /*_RTL8711_RF_H_*/ 56 - 55 + #endif /*__RTL871X_RF_H_*/