summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/pac7311.c
diff options
context:
space:
mode:
authorMarton Nemeth2009-12-30 13:12:41 +0100
committerMauro Carvalho Chehab2010-02-26 19:10:29 +0100
commit7e64dc4c4d6f5c8935fac25c7fc7aa83f9880ed7 (patch)
tree5e17a60d4c132a95cb3c3687245483f571cb56be /drivers/media/video/gspca/pac7311.c
parentV4L/DVB (13898): gspca - some subdrivers: Make sd_desc const. (diff)
downloadkernel-qcow2-linux-7e64dc4c4d6f5c8935fac25c7fc7aa83f9880ed7.tar.gz
kernel-qcow2-linux-7e64dc4c4d6f5c8935fac25c7fc7aa83f9880ed7.tar.xz
kernel-qcow2-linux-7e64dc4c4d6f5c8935fac25c7fc7aa83f9880ed7.zip
V4L/DVB (13899): gspca - all subdrivers: Make control descriptors constant.
The ctrls field of struct sd_desc is declared as const in gspca.h. It is worth to initialize the content also with constant values. Signed-off-by: Marton Nemeth <nm127@freemail.hu> Signed-off-by: Jean-Francois Moine <moinejf@free.fr> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/gspca/pac7311.c')
-rw-r--r--drivers/media/video/gspca/pac7311.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c
index 41f87e9a3426..704cf67e1788 100644
--- a/drivers/media/video/gspca/pac7311.c
+++ b/drivers/media/video/gspca/pac7311.c
@@ -88,7 +88,7 @@ static int sd_getgain(struct gspca_dev *gspca_dev, __s32 *val);
static int sd_setexposure(struct gspca_dev *gspca_dev, __s32 val);
static int sd_getexposure(struct gspca_dev *gspca_dev, __s32 *val);
-static struct ctrl sd_ctrls[] = {
+static const struct ctrl sd_ctrls[] = {
/* This control is for both the 7302 and the 7311 */
{
{