aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorTobias Klauser <tklauser@distanz.ch>2009-02-09 16:06:49 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-03-30 11:42:48 -0400
commite23b290716ad9355d9f17b569c8c9e659ff68aa7 (patch)
tree758ac4c12ca52c9f2e915a5b1a43e3e71a161284 /drivers/media
parent92e8c91bd2a0db4b129baf332344f564bdfca941 (diff)
V4L/DVB (10628): V4L: Storage class should be before const qualifier
The C99 specification states in section 6.11.5: The placement of a storage-class specifier other than at the beginning of the declaration specifiers in a declaration is an obsolescent feature. Cc: Jean-Francois Moine <moinejf@free.fr> Cc: Sakari Ailus <sakari.ailus@nokia.com> Signed-off-by: Tobias Klauser <tklauser@distanz.ch> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/gspca/t613.c2
-rw-r--r--drivers/media/video/tcm825x.c22
-rw-r--r--drivers/media/video/tcm825x.h2
3 files changed, 13 insertions, 13 deletions
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c
index 0a1f4efdc6ed..95c120a506d3 100644
--- a/drivers/media/video/gspca/t613.c
+++ b/drivers/media/video/gspca/t613.c
@@ -272,7 +272,7 @@ struct additional_sensor_data {
272 const u8 stream[4]; 272 const u8 stream[4];
273}; 273};
274 274
275const static struct additional_sensor_data sensor_data[] = { 275static const struct additional_sensor_data sensor_data[] = {
276 { /* OM6802 */ 276 { /* OM6802 */
277 .data1 = 277 .data1 =
278 {0xc2, 0x28, 0x0f, 0x22, 0xcd, 0x27, 0x2c, 0x06, 278 {0xc2, 0x28, 0x0f, 0x22, 0xcd, 0x27, 0x2c, 0x06,
diff --git a/drivers/media/video/tcm825x.c b/drivers/media/video/tcm825x.c
index 29991d1cf13e..b30c49248217 100644
--- a/drivers/media/video/tcm825x.c
+++ b/drivers/media/video/tcm825x.c
@@ -50,7 +50,7 @@ struct tcm825x_sensor {
50}; 50};
51 51
52/* list of image formats supported by TCM825X sensor */ 52/* list of image formats supported by TCM825X sensor */
53const static struct v4l2_fmtdesc tcm825x_formats[] = { 53static const struct v4l2_fmtdesc tcm825x_formats[] = {
54 { 54 {
55 .description = "YUYV (YUV 4:2:2), packed", 55 .description = "YUYV (YUV 4:2:2), packed",
56 .pixelformat = V4L2_PIX_FMT_UYVY, 56 .pixelformat = V4L2_PIX_FMT_UYVY,
@@ -76,15 +76,15 @@ const static struct v4l2_fmtdesc tcm825x_formats[] = {
76 * TCM825X register configuration for all combinations of pixel format and 76 * TCM825X register configuration for all combinations of pixel format and
77 * image size 77 * image size
78 */ 78 */
79const static struct tcm825x_reg subqcif = { 0x20, TCM825X_PICSIZ }; 79static const struct tcm825x_reg subqcif = { 0x20, TCM825X_PICSIZ };
80const static struct tcm825x_reg qcif = { 0x18, TCM825X_PICSIZ }; 80static const struct tcm825x_reg qcif = { 0x18, TCM825X_PICSIZ };
81const static struct tcm825x_reg cif = { 0x14, TCM825X_PICSIZ }; 81static const struct tcm825x_reg cif = { 0x14, TCM825X_PICSIZ };
82const static struct tcm825x_reg qqvga = { 0x0c, TCM825X_PICSIZ }; 82static const struct tcm825x_reg qqvga = { 0x0c, TCM825X_PICSIZ };
83const static struct tcm825x_reg qvga = { 0x04, TCM825X_PICSIZ }; 83static const struct tcm825x_reg qvga = { 0x04, TCM825X_PICSIZ };
84const static struct tcm825x_reg vga = { 0x00, TCM825X_PICSIZ }; 84static const struct tcm825x_reg vga = { 0x00, TCM825X_PICSIZ };
85 85
86const static struct tcm825x_reg yuv422 = { 0x00, TCM825X_PICFMT }; 86static const struct tcm825x_reg yuv422 = { 0x00, TCM825X_PICFMT };
87const static struct tcm825x_reg rgb565 = { 0x02, TCM825X_PICFMT }; 87static const struct tcm825x_reg rgb565 = { 0x02, TCM825X_PICFMT };
88 88
89/* Our own specific controls */ 89/* Our own specific controls */
90#define V4L2_CID_ALC V4L2_CID_PRIVATE_BASE 90#define V4L2_CID_ALC V4L2_CID_PRIVATE_BASE
@@ -248,10 +248,10 @@ static struct vcontrol {
248}; 248};
249 249
250 250
251const static struct tcm825x_reg *tcm825x_siz_reg[NUM_IMAGE_SIZES] = 251static const struct tcm825x_reg *tcm825x_siz_reg[NUM_IMAGE_SIZES] =
252{ &subqcif, &qqvga, &qcif, &qvga, &cif, &vga }; 252{ &subqcif, &qqvga, &qcif, &qvga, &cif, &vga };
253 253
254const static struct tcm825x_reg *tcm825x_fmt_reg[NUM_PIXEL_FORMATS] = 254static const struct tcm825x_reg *tcm825x_fmt_reg[NUM_PIXEL_FORMATS] =
255{ &yuv422, &rgb565 }; 255{ &yuv422, &rgb565 };
256 256
257/* 257/*
diff --git a/drivers/media/video/tcm825x.h b/drivers/media/video/tcm825x.h
index 770ebacfa344..5b7e69682368 100644
--- a/drivers/media/video/tcm825x.h
+++ b/drivers/media/video/tcm825x.h
@@ -188,7 +188,7 @@ struct tcm825x_platform_data {
188/* Array of image sizes supported by TCM825X. These must be ordered from 188/* Array of image sizes supported by TCM825X. These must be ordered from
189 * smallest image size to largest. 189 * smallest image size to largest.
190 */ 190 */
191const static struct capture_size tcm825x_sizes[] = { 191static const struct capture_size tcm825x_sizes[] = {
192 { 128, 96 }, /* subQCIF */ 192 { 128, 96 }, /* subQCIF */
193 { 160, 120 }, /* QQVGA */ 193 { 160, 120 }, /* QQVGA */
194 { 176, 144 }, /* QCIF */ 194 { 176, 144 }, /* QCIF */