diff options
Diffstat (limited to 'linux/drivers/media/dvb/bt8xx')
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/bt878.c | 15 | ||||
-rw-r--r-- | linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c | 9 |
2 files changed, 15 insertions, 9 deletions
diff --git a/linux/drivers/media/dvb/bt8xx/bt878.c b/linux/drivers/media/dvb/bt8xx/bt878.c index d680a456a..89f0f5efd 100644 --- a/linux/drivers/media/dvb/bt8xx/bt878.c +++ b/linux/drivers/media/dvb/bt8xx/bt878.c @@ -51,14 +51,14 @@ /* Miscellaneous utility definitions */ /**************************************/ -unsigned int bt878_verbose = 1; -unsigned int bt878_debug = 0; -MODULE_PARM(bt878_verbose, "i"); +static unsigned int bt878_verbose = 1; +static unsigned int bt878_debug; + +module_param_named(verbose, bt878_verbose, int, 0444); MODULE_PARM_DESC(bt878_verbose, "verbose startup messages, default is 1 (yes)"); -MODULE_PARM(bt878_debug, "i"); -MODULE_PARM_DESC(bt878_debug, "debug messages, default is 0 (no)"); -MODULE_LICENSE("GPL"); +module_param_named(debug, bt878_debug, int, 0644); +MODULE_PARM_DESC(bt878_debug, "Turn on/off debugging (default:off)."); int bt878_num; struct bt878 bt878[BT878_MAX]; @@ -606,6 +606,9 @@ EXPORT_SYMBOL(bt878_cleanup_module); module_init(bt878_init_module); module_exit(bt878_cleanup_module); +//MODULE_AUTHOR("XXX"); +MODULE_LICENSE("GPL"); + /* * Local variables: * c-basic-offset: 8 diff --git a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c index 283c07635..74a767a37 100644 --- a/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c +++ b/linux/drivers/media/dvb/bt8xx/dvb-bt8xx.c @@ -37,11 +37,15 @@ #include "bt878.h" -/* ID THAT MUST GO INTO i2c ids */ +/* FIXME: The method of getting the i2c adapter is wrong. */ #ifndef I2C_DRIVERID_DVB_BT878A # define I2C_DRIVERID_DVB_BT878A I2C_DRIVERID_EXP0+10 #endif +static int debug; + +module_param(debug, int, 0644); +MODULE_PARM_DESC(debug, "Turn on/off debugging (default:off)."); #define dprintk if (debug) printk @@ -49,7 +53,6 @@ extern int bttv_get_cardinfo(unsigned int card, int *type, int *cardid); extern struct pci_dev* bttv_get_pcidev(unsigned int card); static LIST_HEAD(card_list); -static int debug = 0; static void dvb_bt8xx_task(unsigned long data) { @@ -532,4 +535,4 @@ module_exit(dvb_bt8xx_exit); MODULE_DESCRIPTION("Bt8xx based DVB adapter driver"); MODULE_AUTHOR("Florian Schirmer <jolt@tuxbox.org>"); MODULE_LICENSE("GPL"); -MODULE_PARM(debug, "i"); + |