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/video/usbvideo | |
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/video/usbvideo')
-rw-r--r-- | drivers/media/video/usbvideo/ibmcam.c | 2 | ||||
-rw-r--r-- | drivers/media/video/usbvideo/konicawc.c | 2 | ||||
-rw-r--r-- | drivers/media/video/usbvideo/quickcam_messenger.c | 2 | ||||
-rw-r--r-- | drivers/media/video/usbvideo/ultracam.c | 4 | ||||
-rw-r--r-- | drivers/media/video/usbvideo/usbvideo.c | 2 |
5 files changed, 6 insertions, 6 deletions
diff --git a/drivers/media/video/usbvideo/ibmcam.c b/drivers/media/video/usbvideo/ibmcam.c index 14db95e10cfe..84ee6b1d9fd2 100644 --- a/drivers/media/video/usbvideo/ibmcam.c +++ b/drivers/media/video/usbvideo/ibmcam.c | |||
@@ -121,7 +121,7 @@ static int init_model2_yb = -1; | |||
121 | 121 | ||
122 | /* 01.01.08 - Added for RCA video in support -LO */ | 122 | /* 01.01.08 - Added for RCA video in support -LO */ |
123 | /* Settings for camera model 3 */ | 123 | /* Settings for camera model 3 */ |
124 | static int init_model3_input = 0; | 124 | static int init_model3_input; |
125 | 125 | ||
126 | module_param(debug, int, 0); | 126 | module_param(debug, int, 0); |
127 | MODULE_PARM_DESC(debug, "Debug level: 0-9 (default=0)"); | 127 | MODULE_PARM_DESC(debug, "Debug level: 0-9 (default=0)"); |
diff --git a/drivers/media/video/usbvideo/konicawc.c b/drivers/media/video/usbvideo/konicawc.c index 719b17ce83f8..97479609f97d 100644 --- a/drivers/media/video/usbvideo/konicawc.c +++ b/drivers/media/video/usbvideo/konicawc.c | |||
@@ -61,7 +61,7 @@ static int debug; | |||
61 | } | 61 | } |
62 | #else | 62 | #else |
63 | #define DEBUG(n, arg...) | 63 | #define DEBUG(n, arg...) |
64 | static const int debug = 0; | 64 | static const int debug; |
65 | #endif | 65 | #endif |
66 | 66 | ||
67 | 67 | ||
diff --git a/drivers/media/video/usbvideo/quickcam_messenger.c b/drivers/media/video/usbvideo/quickcam_messenger.c index a2acba0bcc47..e0ee6d8f2565 100644 --- a/drivers/media/video/usbvideo/quickcam_messenger.c +++ b/drivers/media/video/usbvideo/quickcam_messenger.c | |||
@@ -50,7 +50,7 @@ static int debug; | |||
50 | } | 50 | } |
51 | #else | 51 | #else |
52 | #define DEBUG(n, arg...) | 52 | #define DEBUG(n, arg...) |
53 | static const int debug = 0; | 53 | static const int debug; |
54 | #endif | 54 | #endif |
55 | 55 | ||
56 | #define DRIVER_VERSION "v0.01" | 56 | #define DRIVER_VERSION "v0.01" |
diff --git a/drivers/media/video/usbvideo/ultracam.c b/drivers/media/video/usbvideo/ultracam.c index 95453c108d40..9544e644bf0d 100644 --- a/drivers/media/video/usbvideo/ultracam.c +++ b/drivers/media/video/usbvideo/ultracam.c | |||
@@ -28,9 +28,9 @@ typedef struct { | |||
28 | 28 | ||
29 | static struct usbvideo *cams = NULL; | 29 | static struct usbvideo *cams = NULL; |
30 | 30 | ||
31 | static int debug = 0; | 31 | static int debug; |
32 | 32 | ||
33 | static int flags = 0; /* FLAGS_DISPLAY_HINTS | FLAGS_OVERLAY_STATS; */ | 33 | static int flags; /* FLAGS_DISPLAY_HINTS | FLAGS_OVERLAY_STATS; */ |
34 | 34 | ||
35 | static const int min_canvasWidth = 8; | 35 | static const int min_canvasWidth = 8; |
36 | static const int min_canvasHeight = 4; | 36 | static const int min_canvasHeight = 4; |
diff --git a/drivers/media/video/usbvideo/usbvideo.c b/drivers/media/video/usbvideo/usbvideo.c index 5d363be7bc73..f1ccf59545d4 100644 --- a/drivers/media/video/usbvideo/usbvideo.c +++ b/drivers/media/video/usbvideo/usbvideo.c | |||
@@ -522,7 +522,7 @@ void usbvideo_TestPattern(struct uvd *uvd, int fullframe, int pmode) | |||
522 | struct usbvideo_frame *frame; | 522 | struct usbvideo_frame *frame; |
523 | int num_cell = 0; | 523 | int num_cell = 0; |
524 | int scan_length = 0; | 524 | int scan_length = 0; |
525 | static int num_pass = 0; | 525 | static int num_pass; |
526 | 526 | ||
527 | if (uvd == NULL) { | 527 | if (uvd == NULL) { |
528 | err("%s: uvd == NULL", __FUNCTION__); | 528 | err("%s: uvd == NULL", __FUNCTION__); |