aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/tuner-core.c
diff options
context:
space:
mode:
authorHans Verkuil <hverkuil@xs4all.nl>2006-01-11 16:01:01 -0500
committerMauro Carvalho Chehab <mchehab@brturbo.com.br>2006-01-11 17:26:13 -0500
commitf9195ded25a4e8fba09c67aa24b42cd98a242d7d (patch)
tree61b4abb19b4ce4dc734b4a79fa90df241664b6f5 /drivers/media/video/tuner-core.c
parentf167cb4e6ee07914b66eb85fc0bf006a409b6838 (diff)
V4L/DVB (3347): Fixes some bad global variables
- Debug global var is already used inside kernel, so renamed debug to tuner_debug for the tuner module Signed-off-by: Hans Verkuil <hverkuil@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/video/tuner-core.c')
-rw-r--r--drivers/media/video/tuner-core.c16
1 files changed, 8 insertions, 8 deletions
diff --git a/drivers/media/video/tuner-core.c b/drivers/media/video/tuner-core.c
index 89d013ce5edb..f30ef79d795e 100644
--- a/drivers/media/video/tuner-core.c
+++ b/drivers/media/video/tuner-core.c
@@ -41,8 +41,8 @@ static unsigned int no_autodetect = 0;
41static unsigned int show_i2c = 0; 41static unsigned int show_i2c = 0;
42 42
43/* insmod options used at runtime => read/write */ 43/* insmod options used at runtime => read/write */
44static unsigned int tuner_debug = 0; 44static unsigned int tuner_debug_old = 0;
45int debug = 0; 45int tuner_debug = 0;
46 46
47static unsigned int tv_range[2] = { 44, 958 }; 47static unsigned int tv_range[2] = { 44, 958 };
48static unsigned int radio_range[2] = { 65, 108 }; 48static unsigned int radio_range[2] = { 65, 108 };
@@ -51,13 +51,13 @@ static char pal[] = "--";
51static char secam[] = "--"; 51static char secam[] = "--";
52static char ntsc[] = "-"; 52static char ntsc[] = "-";
53 53
54
54module_param(addr, int, 0444); 55module_param(addr, int, 0444);
55module_param(no_autodetect, int, 0444); 56module_param(no_autodetect, int, 0444);
56module_param(show_i2c, int, 0444); 57module_param(show_i2c, int, 0444);
57/* Note: tuner_debug is deprecated and will be removed in 2.6.17 */ 58/* Note: tuner_debug is deprecated and will be removed in 2.6.17 */
58module_param(tuner_debug, int, 0444); 59module_param_named(tuner_debug,tuner_debug_old, int, 0444);
59module_param(debug, int, 0644); 60module_param_named(debug,tuner_debug, int, 0644);
60
61module_param_string(pal, pal, sizeof(pal), 0644); 61module_param_string(pal, pal, sizeof(pal), 0644);
62module_param_string(secam, secam, sizeof(secam), 0644); 62module_param_string(secam, secam, sizeof(secam), 0644);
63module_param_string(ntsc, ntsc, sizeof(ntsc), 0644); 63module_param_string(ntsc, ntsc, sizeof(ntsc), 0644);
@@ -419,8 +419,8 @@ static int tuner_attach(struct i2c_adapter *adap, int addr, int kind)
419 t->radio_if2 = 10700 * 1000; /* 10.7MHz - FM radio */ 419 t->radio_if2 = 10700 * 1000; /* 10.7MHz - FM radio */
420 t->audmode = V4L2_TUNER_MODE_STEREO; 420 t->audmode = V4L2_TUNER_MODE_STEREO;
421 t->mode_mask = T_UNINITIALIZED; 421 t->mode_mask = T_UNINITIALIZED;
422 if (tuner_debug) { 422 if (tuner_debug_old) {
423 debug = tuner_debug; 423 tuner_debug = tuner_debug_old;
424 printk(KERN_ERR "tuner: tuner_debug is deprecated and will be removed in 2.6.17.\n"); 424 printk(KERN_ERR "tuner: tuner_debug is deprecated and will be removed in 2.6.17.\n");
425 printk(KERN_ERR "tuner: use the debug option instead.\n"); 425 printk(KERN_ERR "tuner: use the debug option instead.\n");
426 } 426 }
@@ -551,7 +551,7 @@ static int tuner_command(struct i2c_client *client, unsigned int cmd, void *arg)
551{ 551{
552 struct tuner *t = i2c_get_clientdata(client); 552 struct tuner *t = i2c_get_clientdata(client);
553 553
554 if (debug>1) 554 if (tuner_debug>1)
555 v4l_i2c_print_ioctl(&(t->i2c),cmd); 555 v4l_i2c_print_ioctl(&(t->i2c),cmd);
556 556
557 switch (cmd) { 557 switch (cmd) {