Skip to content

Commit

Permalink
[media] staging: as102: Move variable declarations to the header
Browse files Browse the repository at this point in the history
Fixes following checkpatch.pl warning:
WARNING: externs should be avoided in .c files

Cc: Devin Heitmueller <dheitmueller@kernellabs.com>
Signed-off-by: Sylwester Nawrocki <snjw23@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Sylwester Nawrocki authored and Mauro Carvalho Chehab committed Nov 8, 2011
1 parent 3288e20 commit a117263
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
1 change: 1 addition & 0 deletions drivers/staging/media/as102/as102_drv.h
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,7 @@

extern int debug;
extern struct usb_driver as102_usb_driver;
extern int elna_enable;

#define dprintk(debug, args...) \
do { if (debug) { \
Expand Down
2 changes: 0 additions & 2 deletions drivers/staging/media/as102/as102_fe.c
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,6 @@
#include "as10x_types.h"
#include "as10x_cmd.h"

extern int elna_enable;

static void as10x_fe_copy_tps_parameters(struct dvb_frontend_parameters *dst,
struct as10x_tps *src);

Expand Down

0 comments on commit a117263

Please sign in to comment.