V4L/DVB: gspca - cpia1 / sn9c2028: Make control descriptors constant
authorJean-François Moine <moinejf@free.fr>
Sun, 7 Mar 2010 10:18:59 +0000 (07:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Tue, 18 May 2010 03:46:31 +0000 (00:46 -0300)
Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/video/gspca/cpia1.c
drivers/media/video/gspca/sn9c2028.c

index 82945ed5cbe5684769b5a5f8d253c619c1128504..8fa98439c3f8c9e71e3de35ec58a695f2355608a 100644 (file)
@@ -374,7 +374,7 @@ static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val);
 static int sd_setcomptarget(struct gspca_dev *gspca_dev, __s32 val);
 static int sd_getcomptarget(struct gspca_dev *gspca_dev, __s32 *val);
 
-static struct ctrl sd_ctrls[] = {
+static const struct ctrl sd_ctrls[] = {
        {
            {
                .id      = V4L2_CID_BRIGHTNESS,
index dda5fd4aa69e6b577b203353e3c107a201dfbc0e..71d9447a79867bb88cdf11fb12e19738a90c5900 100644 (file)
@@ -39,7 +39,7 @@ struct init_command {
 };
 
 /* V4L2 controls supported by the driver */
-static struct ctrl sd_ctrls[] = {
+static const struct ctrl sd_ctrls[] = {
 };
 
 /* How to change the resolution of any of the VGA cams is unknown */