Explorar o código

V4L/DVB: gspca - cpia1 / sn9c2028: Make control descriptors constant

Signed-off-by: Jean-François Moine <moinejf@free.fr>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Jean-François Moine %!s(int64=15) %!d(string=hai) anos
pai
achega
a4fa8e9e85
Modificáronse 2 ficheiros con 2 adicións e 2 borrados
  1. 1 1
      drivers/media/video/gspca/cpia1.c
  2. 1 1
      drivers/media/video/gspca/sn9c2028.c

+ 1 - 1
drivers/media/video/gspca/cpia1.c

@@ -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,

+ 1 - 1
drivers/media/video/gspca/sn9c2028.c

@@ -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 */