OSDN Git Service

staging: dgnc: make dgnc_poll_tick static
authorGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 11 Jan 2018 16:50:21 +0000 (17:50 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 15 Jan 2018 15:07:08 +0000 (16:07 +0100)
No one needs to see this global variable, so make it static.

Cc: Lidza Louina <lidza.louina@gmail.com>
Cc: Mark Hounschell <markh@compro.net>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgnc/dgnc_driver.c
drivers/staging/dgnc/dgnc_driver.h

index 3f2815c..8019662 100644 (file)
@@ -23,8 +23,8 @@ MODULE_SUPPORTED_DEVICE("dgnc");
 static unsigned int dgnc_num_boards;
 struct dgnc_board              *dgnc_board[MAXBOARDS];
 static DEFINE_SPINLOCK(dgnc_poll_lock); /* Poll scheduling lock */
-int                    dgnc_poll_tick = 20;    /* Poll interval - 20 ms */
 
+static int             dgnc_poll_tick = 20;    /* Poll interval - 20 ms */
 static ulong           dgnc_poll_time; /* Time of next poll */
 static uint            dgnc_poll_stop; /* Used to tell poller to stop */
 static struct timer_list dgnc_poll_timer;
index a6bfe15..b71e6d1 100644 (file)
@@ -372,7 +372,6 @@ struct channel_t {
        ulong           ch_xoff_sends;
 };
 
-extern int             dgnc_poll_tick;         /* Poll interval - 20 ms */
 extern struct dgnc_board *dgnc_board[MAXBOARDS];/* Array of boards */
 
 #endif /* _DGNC_DRIVER_H */