summaryrefslogtreecommitdiff
path: root/linux/drivers/media/dvb/frontends/alps_tdmb7.c
diff options
context:
space:
mode:
Diffstat (limited to 'linux/drivers/media/dvb/frontends/alps_tdmb7.c')
-rw-r--r--linux/drivers/media/dvb/frontends/alps_tdmb7.c23
1 files changed, 14 insertions, 9 deletions
diff --git a/linux/drivers/media/dvb/frontends/alps_tdmb7.c b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
index 7956303ff..0d53b4aa6 100644
--- a/linux/drivers/media/dvb/frontends/alps_tdmb7.c
+++ b/linux/drivers/media/dvb/frontends/alps_tdmb7.c
@@ -29,11 +29,18 @@
#include "dvb_frontend.h"
#include "dvb_functions.h"
-static int debug = 0;
-#define dprintk if (debug) printk
+#define FRONTEND_NAME "dvbfe_alps_tdmb7"
+
+#define dprintk(args...) \
+ do { \
+ if (debug) printk(KERN_DEBUG FRONTEND_NAME ": " args); \
+ } while (0)
+
+static int debug;
+
+module_param(debug, int, 0644);
+MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off).");
-// FIXME: Move to i2c-id.h
-#define I2C_DRIVERID_DVBFE_TDMB7 I2C_DRIVERID_EXP0
static struct dvb_frontend_info tdmb7_info = {
.name = "Alps TDMB7",
@@ -491,8 +498,8 @@ static int command (struct i2c_client *client,
static struct i2c_driver driver = {
.owner = THIS_MODULE,
- .name = "alps_tdmb7",
- .id = I2C_DRIVERID_DVBFE_TDMB7,
+ .name = FRONTEND_NAME,
+ .id = I2C_DRIVERID_DVBFE_ALPS_TDMB7,
.flags = I2C_DF_NOTIFY,
.attach_adapter = attach_adapter,
.detach_client = detach_client,
@@ -500,7 +507,7 @@ static struct i2c_driver driver = {
};
static struct i2c_client client_template = {
- I2C_DEVNAME("alps_tdmb7"),
+ .name = FRONTEND_NAME,
.flags = I2C_CLIENT_ALLOW_USE,
.driver = &driver,
};
@@ -519,8 +526,6 @@ static void __exit exit_tdmb7 (void)
module_init (init_tdmb7);
module_exit (exit_tdmb7);
-MODULE_PARM(debug,"i");
-MODULE_PARM_DESC(debug, "enable verbose debug messages");
MODULE_DESCRIPTION("TDMB7 DVB Frontend driver");
MODULE_AUTHOR("Holger Waechtler");
MODULE_LICENSE("GPL");