diff options
author | Douglas Schilling Landgraf <dougsland@gmail.com> | 2008-04-22 13:41:48 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@infradead.org> | 2008-04-24 12:42:20 -0400 |
commit | ff699e6bd02eb1c6d02c7c2b576c2ee6caab201c (patch) | |
tree | 496169dda7f8f4dc471f76f715805eb92d621db3 /drivers/media/dvb/frontends | |
parent | 29bec0bff50d8f8b108ed22e9981eb4635efc566 (diff) |
V4L/DVB (7094): static memory
- Static memory is always initialized with 0.
- Replaced in some cases C99 comments for /* */
Signed-off-by: Douglas Schilling Landgraf <dougsland@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@infradead.org>
Diffstat (limited to 'drivers/media/dvb/frontends')
-rw-r--r-- | drivers/media/dvb/frontends/cx22702.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/dvb-pll.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/lgdt330x.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/nxt6000.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/s5h1409.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/s5h1420.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/sp8870.c | 12 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/tda10086.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/tda826x.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/tda827x.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/ves1x93.c | 2 | ||||
-rw-r--r-- | drivers/media/dvb/frontends/zl10353.c | 2 |
12 files changed, 17 insertions, 17 deletions
diff --git a/drivers/media/dvb/frontends/cx22702.c b/drivers/media/dvb/frontends/cx22702.c index 1dc164d5488c..406c4cfa82bb 100644 --- a/drivers/media/dvb/frontends/cx22702.c +++ b/drivers/media/dvb/frontends/cx22702.c | |||
@@ -48,7 +48,7 @@ struct cx22702_state { | |||
48 | u8 prevUCBlocks; | 48 | u8 prevUCBlocks; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static int debug = 0; | 51 | static int debug; |
52 | #define dprintk if (debug) printk | 52 | #define dprintk if (debug) printk |
53 | 53 | ||
54 | /* Register values to initialise the demod */ | 54 | /* Register values to initialise the demod */ |
diff --git a/drivers/media/dvb/frontends/dvb-pll.c b/drivers/media/dvb/frontends/dvb-pll.c index 8c8d7342d0b3..decf798994e9 100644 --- a/drivers/media/dvb/frontends/dvb-pll.c +++ b/drivers/media/dvb/frontends/dvb-pll.c | |||
@@ -44,7 +44,7 @@ struct dvb_pll_priv { | |||
44 | 44 | ||
45 | static unsigned int dvb_pll_devcount; | 45 | static unsigned int dvb_pll_devcount; |
46 | 46 | ||
47 | static int debug = 0; | 47 | static int debug; |
48 | module_param(debug, int, 0644); | 48 | module_param(debug, int, 0644); |
49 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); | 49 | MODULE_PARM_DESC(debug, "enable verbose debug messages"); |
50 | 50 | ||
diff --git a/drivers/media/dvb/frontends/lgdt330x.c b/drivers/media/dvb/frontends/lgdt330x.c index bdc9fa88b86a..dc897a3903fc 100644 --- a/drivers/media/dvb/frontends/lgdt330x.c +++ b/drivers/media/dvb/frontends/lgdt330x.c | |||
@@ -49,7 +49,7 @@ | |||
49 | /* Use Equalizer Mean Squared Error instead of Phaser Tracker MSE */ | 49 | /* Use Equalizer Mean Squared Error instead of Phaser Tracker MSE */ |
50 | /* #define USE_EQMSE */ | 50 | /* #define USE_EQMSE */ |
51 | 51 | ||
52 | static int debug = 0; | 52 | static int debug; |
53 | module_param(debug, int, 0644); | 53 | module_param(debug, int, 0644); |
54 | MODULE_PARM_DESC(debug,"Turn on/off lgdt330x frontend debugging (default:off)."); | 54 | MODULE_PARM_DESC(debug,"Turn on/off lgdt330x frontend debugging (default:off)."); |
55 | #define dprintk(args...) \ | 55 | #define dprintk(args...) \ |
diff --git a/drivers/media/dvb/frontends/nxt6000.c b/drivers/media/dvb/frontends/nxt6000.c index d313d7dcf386..0eef22dbf8a0 100644 --- a/drivers/media/dvb/frontends/nxt6000.c +++ b/drivers/media/dvb/frontends/nxt6000.c | |||
@@ -38,7 +38,7 @@ struct nxt6000_state { | |||
38 | struct dvb_frontend frontend; | 38 | struct dvb_frontend frontend; |
39 | }; | 39 | }; |
40 | 40 | ||
41 | static int debug = 0; | 41 | static int debug; |
42 | #define dprintk if (debug) printk | 42 | #define dprintk if (debug) printk |
43 | 43 | ||
44 | static int nxt6000_writereg(struct nxt6000_state* state, u8 reg, u8 data) | 44 | static int nxt6000_writereg(struct nxt6000_state* state, u8 reg, u8 data) |
diff --git a/drivers/media/dvb/frontends/s5h1409.c b/drivers/media/dvb/frontends/s5h1409.c index 1a4d8319773c..1ca250378664 100644 --- a/drivers/media/dvb/frontends/s5h1409.c +++ b/drivers/media/dvb/frontends/s5h1409.c | |||
@@ -48,7 +48,7 @@ struct s5h1409_state { | |||
48 | u32 qam_state; | 48 | u32 qam_state; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static int debug = 0; | 51 | static int debug; |
52 | #define dprintk if (debug) printk | 52 | #define dprintk if (debug) printk |
53 | 53 | ||
54 | /* Register values to initialise the demod, this will set VSB by default */ | 54 | /* Register values to initialise the demod, this will set VSB by default */ |
diff --git a/drivers/media/dvb/frontends/s5h1420.c b/drivers/media/dvb/frontends/s5h1420.c index 2c2c344c4c64..7c64af91e5ac 100644 --- a/drivers/media/dvb/frontends/s5h1420.c +++ b/drivers/media/dvb/frontends/s5h1420.c | |||
@@ -53,7 +53,7 @@ static int s5h1420_get_tune_settings(struct dvb_frontend* fe, | |||
53 | struct dvb_frontend_tune_settings* fesettings); | 53 | struct dvb_frontend_tune_settings* fesettings); |
54 | 54 | ||
55 | 55 | ||
56 | static int debug = 0; | 56 | static int debug; |
57 | #define dprintk if (debug) printk | 57 | #define dprintk if (debug) printk |
58 | 58 | ||
59 | static int s5h1420_writereg (struct s5h1420_state* state, u8 reg, u8 data) | 59 | static int s5h1420_writereg (struct s5h1420_state* state, u8 reg, u8 data) |
diff --git a/drivers/media/dvb/frontends/sp8870.c b/drivers/media/dvb/frontends/sp8870.c index da876f7bfe32..f5b3bfc00436 100644 --- a/drivers/media/dvb/frontends/sp8870.c +++ b/drivers/media/dvb/frontends/sp8870.c | |||
@@ -449,15 +449,15 @@ static int sp8870_read_uncorrected_blocks (struct dvb_frontend* fe, u32* ublocks | |||
449 | return 0; | 449 | return 0; |
450 | } | 450 | } |
451 | 451 | ||
452 | // number of trials to recover from lockup | 452 | /* number of trials to recover from lockup */ |
453 | #define MAXTRIALS 5 | 453 | #define MAXTRIALS 5 |
454 | // maximum checks for data valid signal | 454 | /* maximum checks for data valid signal */ |
455 | #define MAXCHECKS 100 | 455 | #define MAXCHECKS 100 |
456 | 456 | ||
457 | // only for debugging: counter for detected lockups | 457 | /* only for debugging: counter for detected lockups */ |
458 | static int lockups = 0; | 458 | static int lockups; |
459 | // only for debugging: counter for channel switches | 459 | /* only for debugging: counter for channel switches */ |
460 | static int switches = 0; | 460 | static int switches; |
461 | 461 | ||
462 | static int sp8870_set_frontend (struct dvb_frontend* fe, struct dvb_frontend_parameters *p) | 462 | static int sp8870_set_frontend (struct dvb_frontend* fe, struct dvb_frontend_parameters *p) |
463 | { | 463 | { |
diff --git a/drivers/media/dvb/frontends/tda10086.c b/drivers/media/dvb/frontends/tda10086.c index 0d2b69a99ad4..143af96439b9 100644 --- a/drivers/media/dvb/frontends/tda10086.c +++ b/drivers/media/dvb/frontends/tda10086.c | |||
@@ -43,7 +43,7 @@ struct tda10086_state { | |||
43 | bool has_lock; | 43 | bool has_lock; |
44 | }; | 44 | }; |
45 | 45 | ||
46 | static int debug = 0; | 46 | static int debug; |
47 | #define dprintk(args...) \ | 47 | #define dprintk(args...) \ |
48 | do { \ | 48 | do { \ |
49 | if (debug) printk(KERN_DEBUG "tda10086: " args); \ | 49 | if (debug) printk(KERN_DEBUG "tda10086: " args); \ |
diff --git a/drivers/media/dvb/frontends/tda826x.c b/drivers/media/dvb/frontends/tda826x.c index bd3ebc284835..9a91eb0333d9 100644 --- a/drivers/media/dvb/frontends/tda826x.c +++ b/drivers/media/dvb/frontends/tda826x.c | |||
@@ -26,7 +26,7 @@ | |||
26 | 26 | ||
27 | #include "tda826x.h" | 27 | #include "tda826x.h" |
28 | 28 | ||
29 | static int debug = 0; | 29 | static int debug; |
30 | #define dprintk(args...) \ | 30 | #define dprintk(args...) \ |
31 | do { \ | 31 | do { \ |
32 | if (debug) printk(KERN_DEBUG "tda826x: " args); \ | 32 | if (debug) printk(KERN_DEBUG "tda826x: " args); \ |
diff --git a/drivers/media/dvb/frontends/tda827x.c b/drivers/media/dvb/frontends/tda827x.c index 229b11987a58..3190c8d0c17c 100644 --- a/drivers/media/dvb/frontends/tda827x.c +++ b/drivers/media/dvb/frontends/tda827x.c | |||
@@ -25,7 +25,7 @@ | |||
25 | 25 | ||
26 | #include "tda827x.h" | 26 | #include "tda827x.h" |
27 | 27 | ||
28 | static int debug = 0; | 28 | static int debug; |
29 | module_param(debug, int, 0644); | 29 | module_param(debug, int, 0644); |
30 | MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off)."); | 30 | MODULE_PARM_DESC(debug, "Turn on/off frontend debugging (default:off)."); |
31 | 31 | ||
diff --git a/drivers/media/dvb/frontends/ves1x93.c b/drivers/media/dvb/frontends/ves1x93.c index 23fd0303c91b..c041c81f9686 100644 --- a/drivers/media/dvb/frontends/ves1x93.c +++ b/drivers/media/dvb/frontends/ves1x93.c | |||
@@ -48,7 +48,7 @@ struct ves1x93_state { | |||
48 | u8 demod_type; | 48 | u8 demod_type; |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static int debug = 0; | 51 | static int debug; |
52 | #define dprintk if (debug) printk | 52 | #define dprintk if (debug) printk |
53 | 53 | ||
54 | #define DEMOD_VES1893 0 | 54 | #define DEMOD_VES1893 0 |
diff --git a/drivers/media/dvb/frontends/zl10353.c b/drivers/media/dvb/frontends/zl10353.c index 276e3b631dc2..3d508ff4b292 100644 --- a/drivers/media/dvb/frontends/zl10353.c +++ b/drivers/media/dvb/frontends/zl10353.c | |||
@@ -46,7 +46,7 @@ static int debug; | |||
46 | if (debug) printk(KERN_DEBUG "zl10353: " args); \ | 46 | if (debug) printk(KERN_DEBUG "zl10353: " args); \ |
47 | } while (0) | 47 | } while (0) |
48 | 48 | ||
49 | static int debug_regs = 0; | 49 | static int debug_regs; |
50 | 50 | ||
51 | static int zl10353_single_write(struct dvb_frontend *fe, u8 reg, u8 val) | 51 | static int zl10353_single_write(struct dvb_frontend *fe, u8 reg, u8 val) |
52 | { | 52 | { |