diff options
author | Tobias Klauser <tklauser@distanz.ch> | 2009-02-09 16:06:49 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-03-30 11:42:48 -0400 |
commit | e23b290716ad9355d9f17b569c8c9e659ff68aa7 (patch) | |
tree | 758ac4c12ca52c9f2e915a5b1a43e3e71a161284 /drivers/media/video/tcm825x.c | |
parent | 92e8c91bd2a0db4b129baf332344f564bdfca941 (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/video/tcm825x.c')
-rw-r--r-- | drivers/media/video/tcm825x.c | 22 |
1 files changed, 11 insertions, 11 deletions
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 */ |
53 | const static struct v4l2_fmtdesc tcm825x_formats[] = { | 53 | static 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 | */ |
79 | const static struct tcm825x_reg subqcif = { 0x20, TCM825X_PICSIZ }; | 79 | static const struct tcm825x_reg subqcif = { 0x20, TCM825X_PICSIZ }; |
80 | const static struct tcm825x_reg qcif = { 0x18, TCM825X_PICSIZ }; | 80 | static const struct tcm825x_reg qcif = { 0x18, TCM825X_PICSIZ }; |
81 | const static struct tcm825x_reg cif = { 0x14, TCM825X_PICSIZ }; | 81 | static const struct tcm825x_reg cif = { 0x14, TCM825X_PICSIZ }; |
82 | const static struct tcm825x_reg qqvga = { 0x0c, TCM825X_PICSIZ }; | 82 | static const struct tcm825x_reg qqvga = { 0x0c, TCM825X_PICSIZ }; |
83 | const static struct tcm825x_reg qvga = { 0x04, TCM825X_PICSIZ }; | 83 | static const struct tcm825x_reg qvga = { 0x04, TCM825X_PICSIZ }; |
84 | const static struct tcm825x_reg vga = { 0x00, TCM825X_PICSIZ }; | 84 | static const struct tcm825x_reg vga = { 0x00, TCM825X_PICSIZ }; |
85 | 85 | ||
86 | const static struct tcm825x_reg yuv422 = { 0x00, TCM825X_PICFMT }; | 86 | static const struct tcm825x_reg yuv422 = { 0x00, TCM825X_PICFMT }; |
87 | const static struct tcm825x_reg rgb565 = { 0x02, TCM825X_PICFMT }; | 87 | static 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 | ||
251 | const static struct tcm825x_reg *tcm825x_siz_reg[NUM_IMAGE_SIZES] = | 251 | static 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 | ||
254 | const static struct tcm825x_reg *tcm825x_fmt_reg[NUM_PIXEL_FORMATS] = | 254 | static const struct tcm825x_reg *tcm825x_fmt_reg[NUM_PIXEL_FORMATS] = |
255 | { &yuv422, &rgb565 }; | 255 | { &yuv422, &rgb565 }; |
256 | 256 | ||
257 | /* | 257 | /* |