Commit e23b2907 authored by Tobias Klauser's avatar Tobias Klauser Committed by Mauro Carvalho Chehab

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: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 92e8c91b
...@@ -272,7 +272,7 @@ struct additional_sensor_data { ...@@ -272,7 +272,7 @@ struct additional_sensor_data {
const u8 stream[4]; const u8 stream[4];
}; };
const static struct additional_sensor_data sensor_data[] = { static const struct additional_sensor_data sensor_data[] = {
{ /* OM6802 */ { /* OM6802 */
.data1 = .data1 =
{0xc2, 0x28, 0x0f, 0x22, 0xcd, 0x27, 0x2c, 0x06, {0xc2, 0x28, 0x0f, 0x22, 0xcd, 0x27, 0x2c, 0x06,
......
...@@ -50,7 +50,7 @@ struct tcm825x_sensor { ...@@ -50,7 +50,7 @@ struct tcm825x_sensor {
}; };
/* list of image formats supported by TCM825X sensor */ /* list of image formats supported by TCM825X sensor */
const static struct v4l2_fmtdesc tcm825x_formats[] = { static const struct v4l2_fmtdesc tcm825x_formats[] = {
{ {
.description = "YUYV (YUV 4:2:2), packed", .description = "YUYV (YUV 4:2:2), packed",
.pixelformat = V4L2_PIX_FMT_UYVY, .pixelformat = V4L2_PIX_FMT_UYVY,
...@@ -76,15 +76,15 @@ const static struct v4l2_fmtdesc tcm825x_formats[] = { ...@@ -76,15 +76,15 @@ const static struct v4l2_fmtdesc tcm825x_formats[] = {
* TCM825X register configuration for all combinations of pixel format and * TCM825X register configuration for all combinations of pixel format and
* image size * image size
*/ */
const static struct tcm825x_reg subqcif = { 0x20, TCM825X_PICSIZ }; static const struct tcm825x_reg subqcif = { 0x20, TCM825X_PICSIZ };
const static struct tcm825x_reg qcif = { 0x18, TCM825X_PICSIZ }; static const struct tcm825x_reg qcif = { 0x18, TCM825X_PICSIZ };
const static struct tcm825x_reg cif = { 0x14, TCM825X_PICSIZ }; static const struct tcm825x_reg cif = { 0x14, TCM825X_PICSIZ };
const static struct tcm825x_reg qqvga = { 0x0c, TCM825X_PICSIZ }; static const struct tcm825x_reg qqvga = { 0x0c, TCM825X_PICSIZ };
const static struct tcm825x_reg qvga = { 0x04, TCM825X_PICSIZ }; static const struct tcm825x_reg qvga = { 0x04, TCM825X_PICSIZ };
const static struct tcm825x_reg vga = { 0x00, TCM825X_PICSIZ }; static const struct tcm825x_reg vga = { 0x00, TCM825X_PICSIZ };
const static struct tcm825x_reg yuv422 = { 0x00, TCM825X_PICFMT }; static const struct tcm825x_reg yuv422 = { 0x00, TCM825X_PICFMT };
const static struct tcm825x_reg rgb565 = { 0x02, TCM825X_PICFMT }; static const struct tcm825x_reg rgb565 = { 0x02, TCM825X_PICFMT };
/* Our own specific controls */ /* Our own specific controls */
#define V4L2_CID_ALC V4L2_CID_PRIVATE_BASE #define V4L2_CID_ALC V4L2_CID_PRIVATE_BASE
...@@ -248,10 +248,10 @@ static struct vcontrol { ...@@ -248,10 +248,10 @@ static struct vcontrol {
}; };
const static struct tcm825x_reg *tcm825x_siz_reg[NUM_IMAGE_SIZES] = static const struct tcm825x_reg *tcm825x_siz_reg[NUM_IMAGE_SIZES] =
{ &subqcif, &qqvga, &qcif, &qvga, &cif, &vga }; { &subqcif, &qqvga, &qcif, &qvga, &cif, &vga };
const static struct tcm825x_reg *tcm825x_fmt_reg[NUM_PIXEL_FORMATS] = static const struct tcm825x_reg *tcm825x_fmt_reg[NUM_PIXEL_FORMATS] =
{ &yuv422, &rgb565 }; { &yuv422, &rgb565 };
/* /*
......
...@@ -188,7 +188,7 @@ struct tcm825x_platform_data { ...@@ -188,7 +188,7 @@ struct tcm825x_platform_data {
/* Array of image sizes supported by TCM825X. These must be ordered from /* Array of image sizes supported by TCM825X. These must be ordered from
* smallest image size to largest. * smallest image size to largest.
*/ */
const static struct capture_size tcm825x_sizes[] = { static const struct capture_size tcm825x_sizes[] = {
{ 128, 96 }, /* subQCIF */ { 128, 96 }, /* subQCIF */
{ 160, 120 }, /* QQVGA */ { 160, 120 }, /* QQVGA */
{ 176, 144 }, /* QCIF */ { 176, 144 }, /* QCIF */
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment