diff options
author | Hans Verkuil <hverkuil@xs4all.nl> | 2006-01-11 16:01:01 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@brturbo.com.br> | 2006-01-11 17:26:13 -0500 |
commit | f9195ded25a4e8fba09c67aa24b42cd98a242d7d (patch) | |
tree | 61b4abb19b4ce4dc734b4a79fa90df241664b6f5 /drivers/media/video/tuner-core.c | |
parent | f167cb4e6ee07914b66eb85fc0bf006a409b6838 (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.c | 16 |
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; | |||
41 | static unsigned int show_i2c = 0; | 41 | static unsigned int show_i2c = 0; |
42 | 42 | ||
43 | /* insmod options used at runtime => read/write */ | 43 | /* insmod options used at runtime => read/write */ |
44 | static unsigned int tuner_debug = 0; | 44 | static unsigned int tuner_debug_old = 0; |
45 | int debug = 0; | 45 | int tuner_debug = 0; |
46 | 46 | ||
47 | static unsigned int tv_range[2] = { 44, 958 }; | 47 | static unsigned int tv_range[2] = { 44, 958 }; |
48 | static unsigned int radio_range[2] = { 65, 108 }; | 48 | static unsigned int radio_range[2] = { 65, 108 }; |
@@ -51,13 +51,13 @@ static char pal[] = "--"; | |||
51 | static char secam[] = "--"; | 51 | static char secam[] = "--"; |
52 | static char ntsc[] = "-"; | 52 | static char ntsc[] = "-"; |
53 | 53 | ||
54 | |||
54 | module_param(addr, int, 0444); | 55 | module_param(addr, int, 0444); |
55 | module_param(no_autodetect, int, 0444); | 56 | module_param(no_autodetect, int, 0444); |
56 | module_param(show_i2c, int, 0444); | 57 | module_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 */ |
58 | module_param(tuner_debug, int, 0444); | 59 | module_param_named(tuner_debug,tuner_debug_old, int, 0444); |
59 | module_param(debug, int, 0644); | 60 | module_param_named(debug,tuner_debug, int, 0644); |
60 | |||
61 | module_param_string(pal, pal, sizeof(pal), 0644); | 61 | module_param_string(pal, pal, sizeof(pal), 0644); |
62 | module_param_string(secam, secam, sizeof(secam), 0644); | 62 | module_param_string(secam, secam, sizeof(secam), 0644); |
63 | module_param_string(ntsc, ntsc, sizeof(ntsc), 0644); | 63 | module_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) { |