diff options
author | Patrick Boettcher <devnull@localhost> | 2005-01-24 15:21:17 +0000 |
---|---|---|
committer | Patrick Boettcher <devnull@localhost> | 2005-01-24 15:21:17 +0000 |
commit | 2f64ee5ad4f8c16351b724497b6158eb7d66baa8 (patch) | |
tree | d46f1b213c6fdd5643371d7b6ecb0807d1ab52b3 /linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c | |
parent | 2fc85a3ccf65e064411f26b63a7ae8dedf31c920 (diff) | |
download | mediapointer-dvb-s2-2f64ee5ad4f8c16351b724497b6158eb7d66baa8.tar.gz mediapointer-dvb-s2-2f64ee5ad4f8c16351b724497b6158eb7d66baa8.tar.bz2 |
- fixed '"debug" is not a good name for a global variable...' (now dvb_dibusb_debug) (thanks to Adrian Bunk)
- other globals removed
Diffstat (limited to 'linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c')
-rw-r--r-- | linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c | 19 |
1 files changed, 14 insertions, 5 deletions
diff --git a/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c b/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c index 2ac4599aa..978804947 100644 --- a/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c +++ b/linux/drivers/media/dvb/dibusb/dvb-dibusb-core.c @@ -27,17 +27,21 @@ #include <linux/moduleparam.h> /* debug */ -#ifdef CONFIG_DVB_DIBCOM_DEBUG -int debug; +static int debug; module_param(debug, int, 0644); -MODULE_PARM_DESC(debug, "set debugging level (1=info,2=xfer,4=alotmore,8=ts,16=err,32=rc (|-able))."); +MODULE_PARM_DESC(debug, "set debugging level (1=info,2=xfer,4=alotmore,8=ts,16=err,32=rc (|-able))." +#ifdef CONFIG_DVB_DIBCOM_DEBUG + " (debugging is not enabled)" #endif +); +int dvb_dibusb_debug = 0; -int pid_parse; + +static int pid_parse; module_param(pid_parse, int, 0644); MODULE_PARM_DESC(pid_parse, "enable pid parsing (filtering) when running at USB2.0"); -int rc_query_interval; +static int rc_query_interval; module_param(rc_query_interval, int, 0644); MODULE_PARM_DESC(rc_query_interval, "interval in msecs for remote control query (default: 100; min: 40)"); @@ -410,6 +414,11 @@ static int dibusb_probe(struct usb_interface *intf, dib->udev = udev; dib->dibdev = dibdev; + /* store parameters to structures */ + dvb_dibusb_debug = debug; + dib->rc_query_interval = rc_query_interval; + dib->pid_parse = pid_parse; + usb_set_intfdata(intf, dib); ret = dibusb_init(dib); |