aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorAdrian Bunk <bunk@kernel.org>2007-11-05 12:07:06 -0500
committerMauro Carvalho Chehab <mchehab@infradead.org>2008-01-25 16:02:06 -0500
commit53133afbeeb177487a907fdc2edf18f857497641 (patch)
treea391dd28bcd6017ffce6adc3ac4650fa4799d4d7
parentf760d618ab385e1c4060f1bfebc335971a5b79f4 (diff)
V4L/DVB (6578): dvb-usb: make some debug vars static
This patch makes some needlessly global debug variables static. opera1.h became so small that I removed it. Signed-off-by: Adrian Bunk <bunk@kernel.org> Reviewed-by: Michael Krufky <mkrufky@linuxtv.org> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
-rw-r--r--drivers/media/dvb/dvb-usb/cxusb.c5
-rw-r--r--drivers/media/dvb/dvb-usb/cxusb.h5
-rw-r--r--drivers/media/dvb/dvb-usb/digitv.c3
-rw-r--r--drivers/media/dvb/dvb-usb/digitv.h3
-rw-r--r--drivers/media/dvb/dvb-usb/opera1.c6
-rw-r--r--drivers/media/dvb/dvb-usb/opera1.h9
-rw-r--r--drivers/media/dvb/dvb-usb/vp7045.c5
-rw-r--r--drivers/media/dvb/dvb-usb/vp7045.h5
8 files changed, 14 insertions, 27 deletions
diff --git a/drivers/media/dvb/dvb-usb/cxusb.c b/drivers/media/dvb/dvb-usb/cxusb.c
index 04e31cf7d530..5b6431ea38c1 100644
--- a/drivers/media/dvb/dvb-usb/cxusb.c
+++ b/drivers/media/dvb/dvb-usb/cxusb.c
@@ -32,9 +32,12 @@
32#include "zl10353.h" 32#include "zl10353.h"
33 33
34/* debug */ 34/* debug */
35int dvb_usb_cxusb_debug; 35static int dvb_usb_cxusb_debug;
36module_param_named(debug, dvb_usb_cxusb_debug, int, 0644); 36module_param_named(debug, dvb_usb_cxusb_debug, int, 0644);
37MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS); 37MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS);
38#define deb_info(args...) dprintk(dvb_usb_cxusb_debug,0x01,args)
39#define deb_i2c(args...) if (d->udev->descriptor.idVendor == USB_VID_MEDION) \
40 dprintk(dvb_usb_cxusb_debug,0x01,args)
38 41
39static int cxusb_ctrl_msg(struct dvb_usb_device *d, 42static int cxusb_ctrl_msg(struct dvb_usb_device *d,
40 u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen) 43 u8 cmd, u8 *wbuf, int wlen, u8 *rbuf, int rlen)
diff --git a/drivers/media/dvb/dvb-usb/cxusb.h b/drivers/media/dvb/dvb-usb/cxusb.h
index c8ef77554b00..79ca7abb89a5 100644
--- a/drivers/media/dvb/dvb-usb/cxusb.h
+++ b/drivers/media/dvb/dvb-usb/cxusb.h
@@ -4,11 +4,6 @@
4#define DVB_USB_LOG_PREFIX "cxusb" 4#define DVB_USB_LOG_PREFIX "cxusb"
5#include "dvb-usb.h" 5#include "dvb-usb.h"
6 6
7extern int dvb_usb_cxusb_debug;
8#define deb_info(args...) dprintk(dvb_usb_cxusb_debug,0x01,args)
9#define deb_i2c(args...) if (d->udev->descriptor.idVendor == USB_VID_MEDION) \
10 dprintk(dvb_usb_cxusb_debug,0x01,args)
11
12/* usb commands - some of it are guesses, don't have a reference yet */ 7/* usb commands - some of it are guesses, don't have a reference yet */
13#define CMD_I2C_WRITE 0x08 8#define CMD_I2C_WRITE 0x08
14#define CMD_I2C_READ 0x09 9#define CMD_I2C_READ 0x09
diff --git a/drivers/media/dvb/dvb-usb/digitv.c b/drivers/media/dvb/dvb-usb/digitv.c
index bca1e0905739..3acbda4aa27e 100644
--- a/drivers/media/dvb/dvb-usb/digitv.c
+++ b/drivers/media/dvb/dvb-usb/digitv.c
@@ -17,9 +17,10 @@
17#include "nxt6000.h" 17#include "nxt6000.h"
18 18
19/* debug */ 19/* debug */
20int dvb_usb_digitv_debug; 20static int dvb_usb_digitv_debug;
21module_param_named(debug,dvb_usb_digitv_debug, int, 0644); 21module_param_named(debug,dvb_usb_digitv_debug, int, 0644);
22MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS); 22MODULE_PARM_DESC(debug, "set debugging level (1=rc (or-able))." DVB_USB_DEBUG_STATUS);
23#define deb_rc(args...) dprintk(dvb_usb_digitv_debug,0x01,args)
23 24
24static int digitv_ctrl_msg(struct dvb_usb_device *d, 25static int digitv_ctrl_msg(struct dvb_usb_device *d,
25 u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen) 26 u8 cmd, u8 vv, u8 *wbuf, int wlen, u8 *rbuf, int rlen)
diff --git a/drivers/media/dvb/dvb-usb/digitv.h b/drivers/media/dvb/dvb-usb/digitv.h
index 8b43e3db8691..908c09f4966b 100644
--- a/drivers/media/dvb/dvb-usb/digitv.h
+++ b/drivers/media/dvb/dvb-usb/digitv.h
@@ -8,9 +8,6 @@ struct digitv_state {
8 int is_nxt6000; 8 int is_nxt6000;
9}; 9};
10 10
11extern int dvb_usb_digitv_debug;
12#define deb_rc(args...) dprintk(dvb_usb_digitv_debug,0x01,args)
13
14/* protocol (from usblogging and the SDK: 11/* protocol (from usblogging and the SDK:
15 * 12 *
16 * Always 7 bytes bulk message(s) for controlling 13 * Always 7 bytes bulk message(s) for controlling
diff --git a/drivers/media/dvb/dvb-usb/opera1.c b/drivers/media/dvb/dvb-usb/opera1.c
index d7c04951ceab..21935bf7059e 100644
--- a/drivers/media/dvb/dvb-usb/opera1.c
+++ b/drivers/media/dvb/dvb-usb/opera1.c
@@ -10,7 +10,9 @@
10* see Documentation/dvb/README.dvb-usb for more information 10* see Documentation/dvb/README.dvb-usb for more information
11*/ 11*/
12 12
13#include "opera1.h" 13#define DVB_USB_LOG_PREFIX "opera"
14
15#include "dvb-usb.h"
14#include "stv0299.h" 16#include "stv0299.h"
15 17
16#define OPERA_READ_MSG 0 18#define OPERA_READ_MSG 0
@@ -38,7 +40,7 @@ struct opera_rc_keys {
38 u32 event; 40 u32 event;
39}; 41};
40 42
41int dvb_usb_opera1_debug; 43static int dvb_usb_opera1_debug;
42module_param_named(debug, dvb_usb_opera1_debug, int, 0644); 44module_param_named(debug, dvb_usb_opera1_debug, int, 0644);
43MODULE_PARM_DESC(debug, 45MODULE_PARM_DESC(debug,
44 "set debugging level (1=info,xfer=2,pll=4,ts=8,err=16,rc=32,fw=64 (or-able))." 46 "set debugging level (1=info,xfer=2,pll=4,ts=8,err=16,rc=32,fw=64 (or-able))."
diff --git a/drivers/media/dvb/dvb-usb/opera1.h b/drivers/media/dvb/dvb-usb/opera1.h
deleted file mode 100644
index 53174427902d..000000000000
--- a/drivers/media/dvb/dvb-usb/opera1.h
+++ /dev/null
@@ -1,9 +0,0 @@
1#ifndef _OPERA1_H_
2#define _OPERA1_H_
3
4#define DVB_USB_LOG_PREFIX "opera"
5#include "dvb-usb.h"
6
7extern int dvb_usb_opera1_debug;
8#define deb_xfer(args...) dprintk(dvb_usb_opera1_debug,0x02,args)
9#endif
diff --git a/drivers/media/dvb/dvb-usb/vp7045.c b/drivers/media/dvb/dvb-usb/vp7045.c
index 5bbd2d5192f0..c172babf59bb 100644
--- a/drivers/media/dvb/dvb-usb/vp7045.c
+++ b/drivers/media/dvb/dvb-usb/vp7045.c
@@ -15,9 +15,12 @@
15#include "vp7045.h" 15#include "vp7045.h"
16 16
17/* debug */ 17/* debug */
18int dvb_usb_vp7045_debug; 18static int dvb_usb_vp7045_debug;
19module_param_named(debug,dvb_usb_vp7045_debug, int, 0644); 19module_param_named(debug,dvb_usb_vp7045_debug, int, 0644);
20MODULE_PARM_DESC(debug, "set debugging level (1=info,xfer=2,rc=4 (or-able))." DVB_USB_DEBUG_STATUS); 20MODULE_PARM_DESC(debug, "set debugging level (1=info,xfer=2,rc=4 (or-able))." DVB_USB_DEBUG_STATUS);
21#define deb_info(args...) dprintk(dvb_usb_vp7045_debug,0x01,args)
22#define deb_xfer(args...) dprintk(dvb_usb_vp7045_debug,0x02,args)
23#define deb_rc(args...) dprintk(dvb_usb_vp7045_debug,0x04,args)
21 24
22int vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen, int msec) 25int vp7045_usb_op(struct dvb_usb_device *d, u8 cmd, u8 *out, int outlen, u8 *in, int inlen, int msec)
23{ 26{
diff --git a/drivers/media/dvb/dvb-usb/vp7045.h b/drivers/media/dvb/dvb-usb/vp7045.h
index 9ce21a20fa86..969688f85267 100644
--- a/drivers/media/dvb/dvb-usb/vp7045.h
+++ b/drivers/media/dvb/dvb-usb/vp7045.h
@@ -17,11 +17,6 @@
17#define DVB_USB_LOG_PREFIX "vp7045" 17#define DVB_USB_LOG_PREFIX "vp7045"
18#include "dvb-usb.h" 18#include "dvb-usb.h"
19 19
20extern int dvb_usb_vp7045_debug;
21#define deb_info(args...) dprintk(dvb_usb_vp7045_debug,0x01,args)
22#define deb_xfer(args...) dprintk(dvb_usb_vp7045_debug,0x02,args)
23#define deb_rc(args...) dprintk(dvb_usb_vp7045_debug,0x04,args)
24
25/* vp7045 commands */ 20/* vp7045 commands */
26 21
27/* Twinhan Vendor requests */ 22/* Twinhan Vendor requests */