gspca - m5602: Storage class should be before const qualifier
PATCH 1/1 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.
Signed-off-by Tobias Klauser <[email protected]>
--- drivers/media/video/gspca/m5602/m5602_mt9m111.c | 2 +- drivers/media/video/gspca/m5602/m5602_mt9m111.h | 2 +- drivers/media/video/gspca/m5602/m5602_ov9650.c | 2 +- drivers/media/video/gspca/m5602/m5602_ov9650.h | 2 +- drivers/media/video/gspca/m5602/m5602_po1030.c | 2 +- drivers/media/video/gspca/m5602/m5602_s5k4aa.c | 2 +- drivers/media/video/gspca/m5602/m5602_s5k83a.c | 2 +- 7 files changed, 7 insertions(+), 7 deletions(-)
drivers/media/video/gspca/m5602/m5602_mt9m111.c +1 -1
@@ -31,7 +31,7 @@ static struct v4l2_pix_format mt9m111_modes[] = { } }; -const static struct ctrl mt9m111_ctrls[] = { +static const struct ctrl mt9m111_ctrls[] = { { { .id =V4L2_CID_VFLIP ,
drivers/media/video/gspca/m5602/m5602_mt9m111.h +1 -1
@@ -94,7 +94,7 @@ int mt9m111_set_hflip(struct gspca_dev *gspca_dev, __s32 val);int mt9m111_get_gain (struct gspca_dev *gspca_dev,__s32 *val);int mt9m111_set_gain (struct gspca_dev *gspca_dev,__s32 val); -const static struct m5602_sensor mt9m111 = { +static const struct m5602_sensor mt9m111 = { .name ="MT9M111" , .i2c_slave_id =0xba ,
drivers/media/video/gspca/m5602/m5602_ov9650.c +1 -1
@@ -68,7 +68,7 @@ static {} }; -const static struct ctrl ov9650_ctrls[] = { +static const struct ctrl ov9650_ctrls[] = { #define EXPOSURE_IDX 0 { {
drivers/media/video/gspca/m5602/m5602_ov9650.h +1 -1
@@ -159,7 +159,7 @@ int ov9650_set_auto_white_balance(struct gspca_dev *gspca_dev, __s32 val);int ov9650_get_auto_gain (struct gspca_dev *gspca_dev,__s32 *val);int ov9650_set_auto_gain (struct gspca_dev *gspca_dev,__s32 val); -const static struct m5602_sensor ov9650 = { +static const struct m5602_sensor ov9650 = { .name ="OV9650" , .i2c_slave_id =0x60 , .i2c_regW =1 ,
drivers/media/video/gspca/m5602/m5602_po1030.c +1 -1
@@ -31,7 +31,7 @@ static struct v4l2_pix_format po1030_modes[] = { } }; -const static struct ctrl po1030_ctrls[] = { +static const struct ctrl po1030_ctrls[] = { { { .id =V4L2_CID_GAIN ,
drivers/media/video/gspca/m5602/m5602_s5k4aa.c +1 -1
@@ -64,7 +64,7 @@ static struct v4l2_pix_format s5k4aa_modes[] = { } }; -const static struct ctrl s5k4aa_ctrls[] = { +static const struct ctrl s5k4aa_ctrls[] = { { { .id =V4L2_CID_VFLIP ,
drivers/media/video/gspca/m5602/m5602_s5k83a.c +1 -1
@@ -32,7 +32,7 @@ static struct v4l2_pix_format s5k83a_modes[] = { } }; -const static struct ctrl s5k83a_ctrls[] = { +static const struct ctrl s5k83a_ctrls[] = { { { .id =V4L2_CID_BRIGHTNESS ,
Signature · 1 line
1.6.2.4
Erik Andrén
Applied2009/4/26 Tobias Klauser <[email protected]>:
Quoted 7 lines
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.
Signed-off-by Tobias Klauser <[email protected]>
I've queued a version of this patch to my repository. Thanks!
Best regards,
Erik