Skip to content

Commit

Permalink
V4L/DVB (13952): gspca: Storage class should be before const qualifier
Browse files Browse the repository at this point in the history
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>
Signed-off-by: Tobias Klauser <tklauser@distanz.ch>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Tobias Klauser authored and Mauro Carvalho Chehab committed Feb 26, 2010
1 parent 9d68e8d commit f0ecba9
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/m5602/m5602_mt9m111.c
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ static struct v4l2_pix_format mt9m111_modes[] = {
}
};

const static struct ctrl mt9m111_ctrls[] = {
static const struct ctrl mt9m111_ctrls[] = {
#define VFLIP_IDX 0
{
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/m5602/m5602_ov7660.c
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static int ov7660_set_hflip(struct gspca_dev *gspca_dev, __s32 val);
static int ov7660_get_vflip(struct gspca_dev *gspca_dev, __s32 *val);
static int ov7660_set_vflip(struct gspca_dev *gspca_dev, __s32 val);

const static struct ctrl ov7660_ctrls[] = {
static const struct ctrl ov7660_ctrls[] = {
#define GAIN_IDX 1
{
{
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/m5602/m5602_ov7660.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int ov7660_start(struct sd *sd);
int ov7660_stop(struct sd *sd);
void ov7660_disconnect(struct sd *sd);

const static struct m5602_sensor ov7660 = {
static const struct m5602_sensor ov7660 = {
.name = "ov7660",
.i2c_slave_id = 0x42,
.i2c_regW = 1,
Expand Down

0 comments on commit f0ecba9

Please sign in to comment.