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

staging: dgnc: remove double underscore

Pre-processor header guards use double underscore, typically kernel
code uses single underscore when defining header guards. 'endif'
statement should include what is ending as a comment string.

Remove double underscore, add comment string to 'endif'

Signed-off-by: Tobin C. Harding <me@tobin.cc>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

authored by

Tobin C. Harding and committed by
Greg Kroah-Hartman
2539fc0c e14047e4

+26 -24
+3 -3
drivers/staging/dgnc/dgnc_cls.h
··· 13 13 * PURPOSE. See the GNU General Public License for more details. 14 14 */ 15 15 16 - #ifndef __DGNC_CLS_H 17 - #define __DGNC_CLS_H 16 + #ifndef _DGNC_CLS_H 17 + #define _DGNC_CLS_H 18 18 19 19 /** 20 20 * struct cls_uart_struct - Per channel/port Classic UART. ··· 73 73 74 74 extern struct board_ops dgnc_cls_ops; 75 75 76 - #endif 76 + #endif /* _DGNC_CLS_H */
+3 -3
drivers/staging/dgnc/dgnc_driver.h
··· 13 13 * PURPOSE. See the GNU General Public License for more details. 14 14 */ 15 15 16 - #ifndef __DGNC_DRIVER_H 17 - #define __DGNC_DRIVER_H 16 + #ifndef _DGNC_DRIVER_H 17 + #define _DGNC_DRIVER_H 18 18 19 19 #include <linux/types.h> 20 20 #include <linux/tty.h> ··· 428 428 extern uint dgnc_num_boards; /* Total number of boards */ 429 429 extern struct dgnc_board *dgnc_board[MAXBOARDS];/* Array of boards */ 430 430 431 - #endif 431 + #endif /* _DGNC_DRIVER_H */
+4 -3
drivers/staging/dgnc/dgnc_mgmt.h
··· 13 13 * PURPOSE. See the GNU General Public License for more details. 14 14 */ 15 15 16 - #ifndef __DGNC_MGMT_H 17 - #define __DGNC_MGMT_H 16 + #ifndef _DGNC_MGMT_H 17 + #define _DGNC_MGMT_H 18 18 19 19 #define MAXMGMTDEVICES 8 20 20 21 21 int dgnc_mgmt_open(struct inode *inode, struct file *file); 22 22 int dgnc_mgmt_close(struct inode *inode, struct file *file); 23 23 long dgnc_mgmt_ioctl(struct file *file, unsigned int cmd, unsigned long arg); 24 - #endif 24 + 25 + #endif /* _DGNC_MGMT_H */ 25 26
+3 -3
drivers/staging/dgnc/dgnc_neo.h
··· 13 13 * PURPOSE. See the GNU General Public License for more details. 14 14 */ 15 15 16 - #ifndef __DGNC_NEO_H 17 - #define __DGNC_NEO_H 16 + #ifndef _DGNC_NEO_H 17 + #define _DGNC_NEO_H 18 18 19 19 #include "dgnc_driver.h" 20 20 ··· 172 172 173 173 extern struct board_ops dgnc_neo_ops; 174 174 175 - #endif 175 + #endif /* _DGNC_NEO_H */
+3 -3
drivers/staging/dgnc/dgnc_pci.h
··· 13 13 * PURPOSE. See the GNU General Public License for more details. 14 14 */ 15 15 16 - #ifndef __DGNC_PCI_H 17 - #define __DGNC_PCI_H 16 + #ifndef _DGNC_PCI_H 17 + #define _DGNC_PCI_H 18 18 19 19 /* Maximum number of PCI boards */ 20 20 #define PCIMAX 32 ··· 66 66 /* Size of memory (2MB) */ 67 67 #define PCI_MEM_SIZE 0x1000 68 68 69 - #endif 69 + #endif /* _DGNC_PCI_H */
+3 -3
drivers/staging/dgnc/dgnc_tty.h
··· 13 13 * PURPOSE. See the GNU General Public License for more details. 14 14 */ 15 15 16 - #ifndef __DGNC_TTY_H 17 - #define __DGNC_TTY_H 16 + #ifndef _DGNC_TTY_H 17 + #define _DGNC_TTY_H 18 18 19 19 #include "dgnc_driver.h" 20 20 ··· 30 30 void dgnc_wakeup_writes(struct channel_t *ch); 31 31 void dgnc_check_queue_flow_control(struct channel_t *ch); 32 32 33 - #endif 33 + #endif /* _DGNC_TTY_H */
+3 -3
drivers/staging/dgnc/dgnc_utils.h
··· 1 - #ifndef __DGNC_UTILS_H 2 - #define __DGNC_UTILS_H 1 + #ifndef _DGNC_UTILS_H 2 + #define _DGNC_UTILS_H 3 3 4 4 int dgnc_ms_sleep(ulong ms); 5 5 6 - #endif 6 + #endif /* _DGNC_UTILS_H */
+4 -3
drivers/staging/dgnc/digi.h
··· 13 13 * PURPOSE. See the GNU General Public License for more details. 14 14 */ 15 15 16 - #ifndef __DIGI_H 17 - #define __DIGI_H 16 + #ifndef _DIGI_H 17 + #define _DIGI_H 18 18 19 19 #ifndef TIOCM_LE 20 20 #define TIOCM_LE 0x01 /* line enable */ ··· 210 210 #define T_NEO 0000 211 211 212 212 #define TTY_FLIPBUF_SIZE 512 213 - #endif /* DIGI_H */ 213 + 214 + #endif /* _DIGI_H */