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/radio | |
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/radio')
-rw-r--r-- | drivers/media/radio/miropcm20-rds.c | 2 | ||||
-rw-r--r-- | drivers/media/radio/radio-cadet.c | 10 | ||||
-rw-r--r-- | drivers/media/radio/radio-typhoon.c | 2 |
3 files changed, 7 insertions, 7 deletions
diff --git a/drivers/media/radio/miropcm20-rds.c b/drivers/media/radio/miropcm20-rds.c index aed11477378b..06dfed9ef4c7 100644 --- a/drivers/media/radio/miropcm20-rds.c +++ b/drivers/media/radio/miropcm20-rds.c | |||
@@ -19,7 +19,7 @@ | |||
19 | #include "miropcm20-rds-core.h" | 19 | #include "miropcm20-rds-core.h" |
20 | 20 | ||
21 | static char * text_buffer; | 21 | static char * text_buffer; |
22 | static int rds_users = 0; | 22 | static int rds_users; |
23 | 23 | ||
24 | 24 | ||
25 | static int rds_f_open(struct inode *in, struct file *fi) | 25 | static int rds_f_open(struct inode *in, struct file *fi) |
diff --git a/drivers/media/radio/radio-cadet.c b/drivers/media/radio/radio-cadet.c index 57b9e3adc8f0..265c4ea95502 100644 --- a/drivers/media/radio/radio-cadet.c +++ b/drivers/media/radio/radio-cadet.c | |||
@@ -69,13 +69,13 @@ static struct v4l2_queryctrl radio_qctrl[] = { | |||
69 | 69 | ||
70 | static int io=-1; /* default to isapnp activation */ | 70 | static int io=-1; /* default to isapnp activation */ |
71 | static int radio_nr = -1; | 71 | static int radio_nr = -1; |
72 | static int users=0; | 72 | static int users; |
73 | static int curtuner=0; | 73 | static int curtuner; |
74 | static int tunestat=0; | 74 | static int tunestat; |
75 | static int sigstrength=0; | 75 | static int sigstrength; |
76 | static wait_queue_head_t read_queue; | 76 | static wait_queue_head_t read_queue; |
77 | static struct timer_list readtimer; | 77 | static struct timer_list readtimer; |
78 | static __u8 rdsin=0,rdsout=0,rdsstat=0; | 78 | static __u8 rdsin, rdsout, rdsstat; |
79 | static unsigned char rdsbuf[RDS_BUFFER]; | 79 | static unsigned char rdsbuf[RDS_BUFFER]; |
80 | static spinlock_t cadet_io_lock; | 80 | static spinlock_t cadet_io_lock; |
81 | 81 | ||
diff --git a/drivers/media/radio/radio-typhoon.c b/drivers/media/radio/radio-typhoon.c index 1366326474e5..02e3a2f05eee 100644 --- a/drivers/media/radio/radio-typhoon.c +++ b/drivers/media/radio/radio-typhoon.c | |||
@@ -404,7 +404,7 @@ MODULE_PARM_DESC(io, "I/O address of the Typhoon card (0x316 or 0x336)"); | |||
404 | module_param(radio_nr, int, 0); | 404 | module_param(radio_nr, int, 0); |
405 | 405 | ||
406 | #ifdef MODULE | 406 | #ifdef MODULE |
407 | static unsigned long mutefreq = 0; | 407 | static unsigned long mutefreq; |
408 | module_param(mutefreq, ulong, 0); | 408 | module_param(mutefreq, ulong, 0); |
409 | MODULE_PARM_DESC(mutefreq, "Frequency used when muting the card (in kHz)"); | 409 | MODULE_PARM_DESC(mutefreq, "Frequency used when muting the card (in kHz)"); |
410 | #endif | 410 | #endif |