]> bbs.cooldavid.org Git - net-next-2.6.git/commitdiff
V4L/DVB (13952): gspca: Storage class should be before const qualifier
authorTobias Klauser <tklauser@distanz.ch>
Wed, 23 Dec 2009 12:53:14 +0000 (09:53 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Fri, 26 Feb 2010 18:10:33 +0000 (15:10 -0300)
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>
drivers/media/video/gspca/m5602/m5602_mt9m111.c
drivers/media/video/gspca/m5602/m5602_ov7660.c
drivers/media/video/gspca/m5602/m5602_ov7660.h

index 382ea4f3a2853c4b34464d2397e9e25d137de294..c0722fa646066304f124035a2b7505b43d25ec84 100644 (file)
@@ -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
        {
                {
index 2a28b74cb3f9ad5313778483d0318685882f7285..62c1cbf066666dda9efcff261a813e78a3f9d8e8 100644 (file)
@@ -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
        {
                {
index f5588ebe667cae16cbe3b6dc595aa9696d4c81c6..4d9dcf29da2e4ef24e9cb6826ffa024f60420e7f 100644 (file)
@@ -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,