diff options
author | Marton Nemeth <nm127@freemail.hu> | 2009-12-30 07:12:41 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:29 -0500 |
commit | 7e64dc4c4d6f5c8935fac25c7fc7aa83f9880ed7 (patch) | |
tree | 5e17a60d4c132a95cb3c3687245483f571cb56be /drivers/media/video/gspca | |
parent | aabcdfb65be31d7f9486d1400fa217c8827dddd3 (diff) |
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')
25 files changed, 27 insertions, 27 deletions
diff --git a/drivers/media/video/gspca/benq.c b/drivers/media/video/gspca/benq.c index 604c087aed3e..43ac4af8d3ed 100644 --- a/drivers/media/video/gspca/benq.c +++ b/drivers/media/video/gspca/benq.c | |||
@@ -32,7 +32,7 @@ struct sd { | |||
32 | }; | 32 | }; |
33 | 33 | ||
34 | /* V4L2 controls supported by the driver */ | 34 | /* V4L2 controls supported by the driver */ |
35 | static struct ctrl sd_ctrls[] = { | 35 | static const struct ctrl sd_ctrls[] = { |
36 | }; | 36 | }; |
37 | 37 | ||
38 | static const struct v4l2_pix_format vga_mode[] = { | 38 | static const struct v4l2_pix_format vga_mode[] = { |
diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c index 7a76eb487d87..19fe6b24c9a3 100644 --- a/drivers/media/video/gspca/conex.c +++ b/drivers/media/video/gspca/conex.c | |||
@@ -52,7 +52,7 @@ static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val); | |||
52 | static int sd_setcolors(struct gspca_dev *gspca_dev, __s32 val); | 52 | static int sd_setcolors(struct gspca_dev *gspca_dev, __s32 val); |
53 | static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val); | 53 | static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val); |
54 | 54 | ||
55 | static struct ctrl sd_ctrls[] = { | 55 | static const struct ctrl sd_ctrls[] = { |
56 | { | 56 | { |
57 | { | 57 | { |
58 | .id = V4L2_CID_BRIGHTNESS, | 58 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c index 87ce6af9cef2..ecd4d743d2bc 100644 --- a/drivers/media/video/gspca/etoms.c +++ b/drivers/media/video/gspca/etoms.c | |||
@@ -52,7 +52,7 @@ static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val); | |||
52 | static int sd_setautogain(struct gspca_dev *gspca_dev, __s32 val); | 52 | static int sd_setautogain(struct gspca_dev *gspca_dev, __s32 val); |
53 | static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val); | 53 | static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val); |
54 | 54 | ||
55 | static struct ctrl sd_ctrls[] = { | 55 | static const struct ctrl sd_ctrls[] = { |
56 | { | 56 | { |
57 | { | 57 | { |
58 | .id = V4L2_CID_BRIGHTNESS, | 58 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/mars.c b/drivers/media/video/gspca/mars.c index 9cf8d68c71bf..3d9229e22b25 100644 --- a/drivers/media/video/gspca/mars.c +++ b/drivers/media/video/gspca/mars.c | |||
@@ -54,7 +54,7 @@ static int sd_getgamma(struct gspca_dev *gspca_dev, __s32 *val); | |||
54 | static int sd_setsharpness(struct gspca_dev *gspca_dev, __s32 val); | 54 | static int sd_setsharpness(struct gspca_dev *gspca_dev, __s32 val); |
55 | static int sd_getsharpness(struct gspca_dev *gspca_dev, __s32 *val); | 55 | static int sd_getsharpness(struct gspca_dev *gspca_dev, __s32 *val); |
56 | 56 | ||
57 | static struct ctrl sd_ctrls[] = { | 57 | static const struct ctrl sd_ctrls[] = { |
58 | { | 58 | { |
59 | { | 59 | { |
60 | .id = V4L2_CID_BRIGHTNESS, | 60 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/mr97310a.c b/drivers/media/video/gspca/mr97310a.c index 9154870e07d2..a9178d9d6745 100644 --- a/drivers/media/video/gspca/mr97310a.c +++ b/drivers/media/video/gspca/mr97310a.c | |||
@@ -107,7 +107,7 @@ static void setexposure(struct gspca_dev *gspca_dev); | |||
107 | static void setgain(struct gspca_dev *gspca_dev); | 107 | static void setgain(struct gspca_dev *gspca_dev); |
108 | 108 | ||
109 | /* V4L2 controls supported by the driver */ | 109 | /* V4L2 controls supported by the driver */ |
110 | static struct ctrl sd_ctrls[] = { | 110 | static const struct ctrl sd_ctrls[] = { |
111 | /* Separate brightness control description for Argus QuickClix as it has | 111 | /* Separate brightness control description for Argus QuickClix as it has |
112 | different limits from the other mr97310a cameras */ | 112 | different limits from the other mr97310a cameras */ |
113 | { | 113 | { |
diff --git a/drivers/media/video/gspca/ov534.c b/drivers/media/video/gspca/ov534.c index 0a6b8f07a69d..da55637d07e8 100644 --- a/drivers/media/video/gspca/ov534.c +++ b/drivers/media/video/gspca/ov534.c | |||
@@ -106,7 +106,7 @@ static int sd_getsatur(struct gspca_dev *gspca_dev, __s32 *val); | |||
106 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val); | 106 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val); |
107 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); | 107 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); |
108 | 108 | ||
109 | static struct ctrl sd_ctrls_ov772x[] = { | 109 | static const struct ctrl sd_ctrls_ov772x[] = { |
110 | { /* 0 */ | 110 | { /* 0 */ |
111 | { | 111 | { |
112 | .id = V4L2_CID_BRIGHTNESS, | 112 | .id = V4L2_CID_BRIGHTNESS, |
@@ -277,7 +277,7 @@ static struct ctrl sd_ctrls_ov772x[] = { | |||
277 | .get = sd_getvflip, | 277 | .get = sd_getvflip, |
278 | }, | 278 | }, |
279 | }; | 279 | }; |
280 | static struct ctrl sd_ctrls_ov965x[] = { | 280 | static const struct ctrl sd_ctrls_ov965x[] = { |
281 | { /* 0 */ | 281 | { /* 0 */ |
282 | { | 282 | { |
283 | .id = V4L2_CID_BRIGHTNESS, | 283 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/pac207.c b/drivers/media/video/gspca/pac207.c index 4706a823add0..5ad4c730b342 100644 --- a/drivers/media/video/gspca/pac207.c +++ b/drivers/media/video/gspca/pac207.c | |||
@@ -77,7 +77,7 @@ static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val); | |||
77 | static int sd_setgain(struct gspca_dev *gspca_dev, __s32 val); | 77 | static int sd_setgain(struct gspca_dev *gspca_dev, __s32 val); |
78 | static int sd_getgain(struct gspca_dev *gspca_dev, __s32 *val); | 78 | static int sd_getgain(struct gspca_dev *gspca_dev, __s32 *val); |
79 | 79 | ||
80 | static struct ctrl sd_ctrls[] = { | 80 | static const struct ctrl sd_ctrls[] = { |
81 | #define SD_BRIGHTNESS 0 | 81 | #define SD_BRIGHTNESS 0 |
82 | { | 82 | { |
83 | { | 83 | { |
diff --git a/drivers/media/video/gspca/pac7302.c b/drivers/media/video/gspca/pac7302.c index be0a353afa3a..b87097505bfc 100644 --- a/drivers/media/video/gspca/pac7302.c +++ b/drivers/media/video/gspca/pac7302.c | |||
@@ -124,7 +124,7 @@ static int sd_getgain(struct gspca_dev *gspca_dev, __s32 *val); | |||
124 | static int sd_setexposure(struct gspca_dev *gspca_dev, __s32 val); | 124 | static int sd_setexposure(struct gspca_dev *gspca_dev, __s32 val); |
125 | static int sd_getexposure(struct gspca_dev *gspca_dev, __s32 *val); | 125 | static int sd_getexposure(struct gspca_dev *gspca_dev, __s32 *val); |
126 | 126 | ||
127 | static struct ctrl sd_ctrls[] = { | 127 | static const struct ctrl sd_ctrls[] = { |
128 | /* This control is pac7302 only */ | 128 | /* This control is pac7302 only */ |
129 | { | 129 | { |
130 | { | 130 | { |
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); | |||
88 | static int sd_setexposure(struct gspca_dev *gspca_dev, __s32 val); | 88 | static int sd_setexposure(struct gspca_dev *gspca_dev, __s32 val); |
89 | static int sd_getexposure(struct gspca_dev *gspca_dev, __s32 *val); | 89 | static int sd_getexposure(struct gspca_dev *gspca_dev, __s32 *val); |
90 | 90 | ||
91 | static struct ctrl sd_ctrls[] = { | 91 | static const struct ctrl sd_ctrls[] = { |
92 | /* This control is for both the 7302 and the 7311 */ | 92 | /* This control is for both the 7302 and the 7311 */ |
93 | { | 93 | { |
94 | { | 94 | { |
diff --git a/drivers/media/video/gspca/sn9c20x.c b/drivers/media/video/gspca/sn9c20x.c index 0ca1c06652b1..e8dd2c36f0e6 100644 --- a/drivers/media/video/gspca/sn9c20x.c +++ b/drivers/media/video/gspca/sn9c20x.c | |||
@@ -129,7 +129,7 @@ static int sd_getexposure(struct gspca_dev *gspca_dev, s32 *val); | |||
129 | static int sd_setautoexposure(struct gspca_dev *gspca_dev, s32 val); | 129 | static int sd_setautoexposure(struct gspca_dev *gspca_dev, s32 val); |
130 | static int sd_getautoexposure(struct gspca_dev *gspca_dev, s32 *val); | 130 | static int sd_getautoexposure(struct gspca_dev *gspca_dev, s32 *val); |
131 | 131 | ||
132 | static struct ctrl sd_ctrls[] = { | 132 | static const struct ctrl sd_ctrls[] = { |
133 | { | 133 | { |
134 | #define BRIGHTNESS_IDX 0 | 134 | #define BRIGHTNESS_IDX 0 |
135 | { | 135 | { |
diff --git a/drivers/media/video/gspca/sonixb.c b/drivers/media/video/gspca/sonixb.c index ddff2b5ee5c2..725a1230c8da 100644 --- a/drivers/media/video/gspca/sonixb.c +++ b/drivers/media/video/gspca/sonixb.c | |||
@@ -145,7 +145,7 @@ static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val); | |||
145 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val); | 145 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val); |
146 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); | 146 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); |
147 | 147 | ||
148 | static struct ctrl sd_ctrls[] = { | 148 | static const struct ctrl sd_ctrls[] = { |
149 | #define BRIGHTNESS_IDX 0 | 149 | #define BRIGHTNESS_IDX 0 |
150 | { | 150 | { |
151 | { | 151 | { |
diff --git a/drivers/media/video/gspca/sonixj.c b/drivers/media/video/gspca/sonixj.c index 94af964772d0..8e4a627dc83f 100644 --- a/drivers/media/video/gspca/sonixj.c +++ b/drivers/media/video/gspca/sonixj.c | |||
@@ -105,7 +105,7 @@ static int sd_getinfrared(struct gspca_dev *gspca_dev, __s32 *val); | |||
105 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val); | 105 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val); |
106 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); | 106 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); |
107 | 107 | ||
108 | static struct ctrl sd_ctrls[] = { | 108 | static const struct ctrl sd_ctrls[] = { |
109 | #define BRIGHTNESS_IDX 0 | 109 | #define BRIGHTNESS_IDX 0 |
110 | { | 110 | { |
111 | { | 111 | { |
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c index 7cc302a389de..b866c73c97db 100644 --- a/drivers/media/video/gspca/spca500.c +++ b/drivers/media/video/gspca/spca500.c | |||
@@ -68,7 +68,7 @@ static int sd_getcontrast(struct gspca_dev *gspca_dev, __s32 *val); | |||
68 | static int sd_setcolors(struct gspca_dev *gspca_dev, __s32 val); | 68 | static int sd_setcolors(struct gspca_dev *gspca_dev, __s32 val); |
69 | static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val); | 69 | static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val); |
70 | 70 | ||
71 | static struct ctrl sd_ctrls[] = { | 71 | static const struct ctrl sd_ctrls[] = { |
72 | { | 72 | { |
73 | { | 73 | { |
74 | .id = V4L2_CID_BRIGHTNESS, | 74 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/spca501.c b/drivers/media/video/gspca/spca501.c index 6761a3048a98..c99333933e32 100644 --- a/drivers/media/video/gspca/spca501.c +++ b/drivers/media/video/gspca/spca501.c | |||
@@ -59,7 +59,7 @@ static int sd_getblue_balance(struct gspca_dev *gspca_dev, __s32 *val); | |||
59 | static int sd_setred_balance(struct gspca_dev *gspca_dev, __s32 val); | 59 | static int sd_setred_balance(struct gspca_dev *gspca_dev, __s32 val); |
60 | static int sd_getred_balance(struct gspca_dev *gspca_dev, __s32 *val); | 60 | static int sd_getred_balance(struct gspca_dev *gspca_dev, __s32 *val); |
61 | 61 | ||
62 | static struct ctrl sd_ctrls[] = { | 62 | static const struct ctrl sd_ctrls[] = { |
63 | #define MY_BRIGHTNESS 0 | 63 | #define MY_BRIGHTNESS 0 |
64 | { | 64 | { |
65 | { | 65 | { |
diff --git a/drivers/media/video/gspca/spca505.c b/drivers/media/video/gspca/spca505.c index 0f9232ff1281..c576eed73abe 100644 --- a/drivers/media/video/gspca/spca505.c +++ b/drivers/media/video/gspca/spca505.c | |||
@@ -42,7 +42,7 @@ struct sd { | |||
42 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val); | 42 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val); |
43 | static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val); | 43 | static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val); |
44 | 44 | ||
45 | static struct ctrl sd_ctrls[] = { | 45 | static const struct ctrl sd_ctrls[] = { |
46 | { | 46 | { |
47 | { | 47 | { |
48 | .id = V4L2_CID_BRIGHTNESS, | 48 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/spca506.c b/drivers/media/video/gspca/spca506.c index a2cc81ccf367..89fec4c500af 100644 --- a/drivers/media/video/gspca/spca506.c +++ b/drivers/media/video/gspca/spca506.c | |||
@@ -51,7 +51,7 @@ static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val); | |||
51 | static int sd_sethue(struct gspca_dev *gspca_dev, __s32 val); | 51 | static int sd_sethue(struct gspca_dev *gspca_dev, __s32 val); |
52 | static int sd_gethue(struct gspca_dev *gspca_dev, __s32 *val); | 52 | static int sd_gethue(struct gspca_dev *gspca_dev, __s32 *val); |
53 | 53 | ||
54 | static struct ctrl sd_ctrls[] = { | 54 | static const struct ctrl sd_ctrls[] = { |
55 | #define SD_BRIGHTNESS 0 | 55 | #define SD_BRIGHTNESS 0 |
56 | { | 56 | { |
57 | { | 57 | { |
diff --git a/drivers/media/video/gspca/spca508.c b/drivers/media/video/gspca/spca508.c index 4d8e6cf75d55..15b2eef8a3f6 100644 --- a/drivers/media/video/gspca/spca508.c +++ b/drivers/media/video/gspca/spca508.c | |||
@@ -45,7 +45,7 @@ struct sd { | |||
45 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val); | 45 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val); |
46 | static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val); | 46 | static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val); |
47 | 47 | ||
48 | static struct ctrl sd_ctrls[] = { | 48 | static const struct ctrl sd_ctrls[] = { |
49 | { | 49 | { |
50 | { | 50 | { |
51 | .id = V4L2_CID_BRIGHTNESS, | 51 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/spca561.c b/drivers/media/video/gspca/spca561.c index 58c2f0039af1..dc7f2b0fbc79 100644 --- a/drivers/media/video/gspca/spca561.c +++ b/drivers/media/video/gspca/spca561.c | |||
@@ -922,7 +922,7 @@ static int sd_getgain(struct gspca_dev *gspca_dev, __s32 *val) | |||
922 | } | 922 | } |
923 | 923 | ||
924 | /* control tables */ | 924 | /* control tables */ |
925 | static struct ctrl sd_ctrls_12a[] = { | 925 | static const struct ctrl sd_ctrls_12a[] = { |
926 | { | 926 | { |
927 | { | 927 | { |
928 | .id = V4L2_CID_HUE, | 928 | .id = V4L2_CID_HUE, |
@@ -964,7 +964,7 @@ static struct ctrl sd_ctrls_12a[] = { | |||
964 | }, | 964 | }, |
965 | }; | 965 | }; |
966 | 966 | ||
967 | static struct ctrl sd_ctrls_72a[] = { | 967 | static const struct ctrl sd_ctrls_72a[] = { |
968 | { | 968 | { |
969 | { | 969 | { |
970 | .id = V4L2_CID_HUE, | 970 | .id = V4L2_CID_HUE, |
diff --git a/drivers/media/video/gspca/stk014.c b/drivers/media/video/gspca/stk014.c index 2e2935532d99..0fb534210a2c 100644 --- a/drivers/media/video/gspca/stk014.c +++ b/drivers/media/video/gspca/stk014.c | |||
@@ -53,7 +53,7 @@ static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val); | |||
53 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val); | 53 | static int sd_setfreq(struct gspca_dev *gspca_dev, __s32 val); |
54 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); | 54 | static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); |
55 | 55 | ||
56 | static struct ctrl sd_ctrls[] = { | 56 | static const struct ctrl sd_ctrls[] = { |
57 | { | 57 | { |
58 | { | 58 | { |
59 | .id = V4L2_CID_BRIGHTNESS, | 59 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/stv0680.c b/drivers/media/video/gspca/stv0680.c index 2a69d7ccb50d..856675e00e2d 100644 --- a/drivers/media/video/gspca/stv0680.c +++ b/drivers/media/video/gspca/stv0680.c | |||
@@ -45,7 +45,7 @@ struct sd { | |||
45 | }; | 45 | }; |
46 | 46 | ||
47 | /* V4L2 controls supported by the driver */ | 47 | /* V4L2 controls supported by the driver */ |
48 | static struct ctrl sd_ctrls[] = { | 48 | static const struct ctrl sd_ctrls[] = { |
49 | }; | 49 | }; |
50 | 50 | ||
51 | static int stv_sndctrl(struct gspca_dev *gspca_dev, int set, u8 req, u16 val, | 51 | static int stv_sndctrl(struct gspca_dev *gspca_dev, int set, u8 req, u16 val, |
diff --git a/drivers/media/video/gspca/sunplus.c b/drivers/media/video/gspca/sunplus.c index 56716c6ed96d..472f56883016 100644 --- a/drivers/media/video/gspca/sunplus.c +++ b/drivers/media/video/gspca/sunplus.c | |||
@@ -67,7 +67,7 @@ static int sd_getcolors(struct gspca_dev *gspca_dev, __s32 *val); | |||
67 | static int sd_setautogain(struct gspca_dev *gspca_dev, __s32 val); | 67 | static int sd_setautogain(struct gspca_dev *gspca_dev, __s32 val); |
68 | static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val); | 68 | static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val); |
69 | 69 | ||
70 | static struct ctrl sd_ctrls[] = { | 70 | static const struct ctrl sd_ctrls[] = { |
71 | { | 71 | { |
72 | { | 72 | { |
73 | .id = V4L2_CID_BRIGHTNESS, | 73 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/t613.c b/drivers/media/video/gspca/t613.c index 55ef6a744427..d0c208c6a690 100644 --- a/drivers/media/video/gspca/t613.c +++ b/drivers/media/video/gspca/t613.c | |||
@@ -78,7 +78,7 @@ static int sd_geteffect(struct gspca_dev *gspca_dev, __s32 *val); | |||
78 | static int sd_querymenu(struct gspca_dev *gspca_dev, | 78 | static int sd_querymenu(struct gspca_dev *gspca_dev, |
79 | struct v4l2_querymenu *menu); | 79 | struct v4l2_querymenu *menu); |
80 | 80 | ||
81 | static struct ctrl sd_ctrls[] = { | 81 | static const struct ctrl sd_ctrls[] = { |
82 | { | 82 | { |
83 | { | 83 | { |
84 | .id = V4L2_CID_BRIGHTNESS, | 84 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/tv8532.c b/drivers/media/video/gspca/tv8532.c index b74a3b6489c7..c7b6eb1e04d5 100644 --- a/drivers/media/video/gspca/tv8532.c +++ b/drivers/media/video/gspca/tv8532.c | |||
@@ -39,7 +39,7 @@ struct sd { | |||
39 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val); | 39 | static int sd_setbrightness(struct gspca_dev *gspca_dev, __s32 val); |
40 | static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val); | 40 | static int sd_getbrightness(struct gspca_dev *gspca_dev, __s32 *val); |
41 | 41 | ||
42 | static struct ctrl sd_ctrls[] = { | 42 | static const struct ctrl sd_ctrls[] = { |
43 | { | 43 | { |
44 | { | 44 | { |
45 | .id = V4L2_CID_BRIGHTNESS, | 45 | .id = V4L2_CID_BRIGHTNESS, |
diff --git a/drivers/media/video/gspca/vc032x.c b/drivers/media/video/gspca/vc032x.c index dbadb97dd465..4989f9afb46e 100644 --- a/drivers/media/video/gspca/vc032x.c +++ b/drivers/media/video/gspca/vc032x.c | |||
@@ -78,7 +78,7 @@ static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); | |||
78 | static int sd_setsharpness(struct gspca_dev *gspca_dev, __s32 val); | 78 | static int sd_setsharpness(struct gspca_dev *gspca_dev, __s32 val); |
79 | static int sd_getsharpness(struct gspca_dev *gspca_dev, __s32 *val); | 79 | static int sd_getsharpness(struct gspca_dev *gspca_dev, __s32 *val); |
80 | 80 | ||
81 | static struct ctrl sd_ctrls[] = { | 81 | static const struct ctrl sd_ctrls[] = { |
82 | #define BRIGHTNESS_IDX 0 | 82 | #define BRIGHTNESS_IDX 0 |
83 | { | 83 | { |
84 | { | 84 | { |
diff --git a/drivers/media/video/gspca/zc3xx.c b/drivers/media/video/gspca/zc3xx.c index 845d691d2f3f..bdab8c4d8acd 100644 --- a/drivers/media/video/gspca/zc3xx.c +++ b/drivers/media/video/gspca/zc3xx.c | |||
@@ -92,7 +92,7 @@ static int sd_getfreq(struct gspca_dev *gspca_dev, __s32 *val); | |||
92 | static int sd_setsharpness(struct gspca_dev *gspca_dev, __s32 val); | 92 | static int sd_setsharpness(struct gspca_dev *gspca_dev, __s32 val); |
93 | static int sd_getsharpness(struct gspca_dev *gspca_dev, __s32 *val); | 93 | static int sd_getsharpness(struct gspca_dev *gspca_dev, __s32 *val); |
94 | 94 | ||
95 | static struct ctrl sd_ctrls[] = { | 95 | static const struct ctrl sd_ctrls[] = { |
96 | #define BRIGHTNESS_IDX 0 | 96 | #define BRIGHTNESS_IDX 0 |
97 | #define SD_BRIGHTNESS 0 | 97 | #define SD_BRIGHTNESS 0 |
98 | { | 98 | { |