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

V4L/DVB (11654): gspca - m5602: 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.

[mchehab@redhat.com: Fix a trivial merge conflict]
Cc: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: default avatarTobias Klauser <tklauser@distanz.ch>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@redhat.com>
parent 72b79747
...@@ -113,7 +113,7 @@ int mt9m111_init(struct sd *sd); ...@@ -113,7 +113,7 @@ int mt9m111_init(struct sd *sd);
int mt9m111_start(struct sd *sd); int mt9m111_start(struct sd *sd);
void mt9m111_disconnect(struct sd *sd); void mt9m111_disconnect(struct sd *sd);
const static struct m5602_sensor mt9m111 = { static const struct m5602_sensor mt9m111 = {
.name = "MT9M111", .name = "MT9M111",
.i2c_slave_id = 0xba, .i2c_slave_id = 0xba,
......
...@@ -97,7 +97,7 @@ static ...@@ -97,7 +97,7 @@ static
{} {}
}; };
const static struct ctrl ov9650_ctrls[] = { static const struct ctrl ov9650_ctrls[] = {
#define EXPOSURE_IDX 0 #define EXPOSURE_IDX 0
{ {
{ {
......
...@@ -143,7 +143,7 @@ int ov9650_start(struct sd *sd); ...@@ -143,7 +143,7 @@ int ov9650_start(struct sd *sd);
int ov9650_stop(struct sd *sd); int ov9650_stop(struct sd *sd);
void ov9650_disconnect(struct sd *sd); void ov9650_disconnect(struct sd *sd);
const static struct m5602_sensor ov9650 = { static const struct m5602_sensor ov9650 = {
.name = "OV9650", .name = "OV9650",
.i2c_slave_id = 0x60, .i2c_slave_id = 0x60,
.i2c_regW = 1, .i2c_regW = 1,
......
...@@ -54,7 +54,7 @@ static struct v4l2_pix_format po1030_modes[] = { ...@@ -54,7 +54,7 @@ static struct v4l2_pix_format po1030_modes[] = {
} }
}; };
const static struct ctrl po1030_ctrls[] = { static const struct ctrl po1030_ctrls[] = {
#define GAIN_IDX 0 #define GAIN_IDX 0
{ {
{ {
......
...@@ -77,7 +77,7 @@ static struct v4l2_pix_format s5k4aa_modes[] = { ...@@ -77,7 +77,7 @@ static struct v4l2_pix_format s5k4aa_modes[] = {
} }
}; };
const static struct ctrl s5k4aa_ctrls[] = { static const struct ctrl s5k4aa_ctrls[] = {
#define VFLIP_IDX 0 #define VFLIP_IDX 0
{ {
{ {
......
...@@ -44,7 +44,7 @@ static struct v4l2_pix_format s5k83a_modes[] = { ...@@ -44,7 +44,7 @@ static struct v4l2_pix_format s5k83a_modes[] = {
} }
}; };
const static struct ctrl s5k83a_ctrls[] = { static const struct ctrl s5k83a_ctrls[] = {
#define GAIN_IDX 0 #define GAIN_IDX 0
{ {
{ {
......
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