]> git.kernelconcepts.de Git - karo-tx-linux.git/blobdiff - drivers/staging/dgnc/dgnc_driver.h
staging: dgnc: remove useless variables for saving tty's
[karo-tx-linux.git] / drivers / staging / dgnc / dgnc_driver.h
index ce7cd9b96542033e2f5063b51f80016962ad5f73..6609ba5f3e7ffefdb87d48261f59e07524f478d3 100644 (file)
@@ -88,7 +88,6 @@
 #define   _POSIX_VDISABLE '\0'
 #endif
 
-
 /*
  * All the possible states the driver can be while being loaded.
  */
@@ -106,7 +105,6 @@ enum {
        BOARD_READY
 };
 
-
 /*************************************************************************
  *
  * Structures and closely related defines.
@@ -145,7 +143,6 @@ struct board_ops {
  ************************************************************************/
 #define BD_IS_PCI_EXPRESS     0x0001     /* Is a PCI Express board */
 
-
 /*
  *     Per-board information
  */
@@ -205,18 +202,13 @@ struct dgnc_board {
                                                 * to our channels.
                                                 */
 
-       struct tty_driver       SerialDriver;
-       char            SerialName[200];
-       struct tty_driver       PrintDriver;
-       char            PrintName[200];
-
-       bool            dgnc_Major_Serial_Registered;
-       bool            dgnc_Major_TransparentPrint_Registered;
-
-       uint            dgnc_Serial_Major;
-       uint            dgnc_TransparentPrint_Major;
+       struct tty_driver serial_driver;
+       char            serial_name[200];
+       struct tty_driver print_driver;
+       char            print_name[200];
 
-       uint            TtyRefCnt;
+       bool            dgnc_major_serial_registered;
+       bool            dgnc_major_transparent_print_registered;
 
        u16             dpatype;        /* The board "type",
                                         * as defined by DPA
@@ -241,7 +233,6 @@ struct dgnc_board {
 
 };
 
-
 /************************************************************************
  * Unit flag definitions for un_flags.
  ************************************************************************/
@@ -277,7 +268,6 @@ struct un_t {
        struct device *un_sysfs;
 };
 
-
 /************************************************************************
  * Device flag definitions for ch_flags.
  ************************************************************************/
@@ -300,7 +290,6 @@ struct un_t {
 #define CH_FORCED_STOP  0x20000                /* Output is forcibly stopped   */
 #define CH_FORCED_STOPI 0x40000                /* Input is forcibly stopped    */
 
-
 /* Our Read/Error/Write queue sizes */
 #define RQUEUEMASK     0x1FFF          /* 8 K - 1 */
 #define EQUEUEMASK     0x1FFF          /* 8 K - 1 */
@@ -309,7 +298,6 @@ struct un_t {
 #define EQUEUESIZE     RQUEUESIZE
 #define WQUEUESIZE     (WQUEUEMASK + 1)
 
-
 /************************************************************************
  * Channel information structure.
  ************************************************************************/
@@ -397,7 +385,6 @@ struct channel_t {
        ulong           ch_intr_tx;     /* Count of interrupts */
        ulong           ch_intr_rx;     /* Count of interrupts */
 
-
        /* /proc/<board>/<channel> entries */
        struct proc_dir_entry *proc_entry_pointer;
        struct dgnc_proc_entry *dgnc_channel_table;
@@ -407,12 +394,12 @@ struct channel_t {
 /*
  * Our Global Variables.
  */
-extern uint            dgnc_Major;             /* Our driver/mgmt major */
+extern uint            dgnc_major;             /* Our driver/mgmt major */
 extern int             dgnc_poll_tick;         /* Poll interval - 20 ms */
 extern spinlock_t      dgnc_global_lock;       /* Driver global spinlock */
 extern spinlock_t      dgnc_poll_lock;         /* Poll scheduling lock */
-extern uint            dgnc_NumBoards;         /* Total number of boards */
-extern struct dgnc_board       *dgnc_Board[MAXBOARDS]; /* Array of board
+extern uint            dgnc_num_boards;                /* Total number of boards */
+extern struct dgnc_board       *dgnc_board[MAXBOARDS]; /* Array of board
                                                         * structs
                                                         */