diff options
author | Márton Németh <nm127@freemail.hu> | 2010-01-05 10:39:02 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2010-02-26 13:10:29 -0500 |
commit | aabcdfb65be31d7f9486d1400fa217c8827dddd3 (patch) | |
tree | 07a47155ad92e4aa9f1f595653e032cac20270b3 /drivers | |
parent | 52a9d3ef0034f29cef1c5616faa72aa394b01b65 (diff) |
V4L/DVB (13898): gspca - some subdrivers: Make sd_desc const.
The function callbacks in sd_desc are defined at compile time and
they do not change at runtime. Make the sd_desc initializations const.
Signed-off-by: Márton Németh <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')
-rw-r--r-- | drivers/media/video/gspca/conex.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/etoms.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/gl860/gl860.c | 10 | ||||
-rw-r--r-- | drivers/media/video/gspca/pac7302.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/pac7311.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/spca500.c | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/spca506.c | 2 |
7 files changed, 11 insertions, 11 deletions
diff --git a/drivers/media/video/gspca/conex.c b/drivers/media/video/gspca/conex.c index c98b5d69c438..7a76eb487d87 100644 --- a/drivers/media/video/gspca/conex.c +++ b/drivers/media/video/gspca/conex.c | |||
@@ -1032,7 +1032,7 @@ static int sd_get_jcomp(struct gspca_dev *gspca_dev, | |||
1032 | } | 1032 | } |
1033 | 1033 | ||
1034 | /* sub-driver description */ | 1034 | /* sub-driver description */ |
1035 | static struct sd_desc sd_desc = { | 1035 | static const struct sd_desc sd_desc = { |
1036 | .name = MODULE_NAME, | 1036 | .name = MODULE_NAME, |
1037 | .ctrls = sd_ctrls, | 1037 | .ctrls = sd_ctrls, |
1038 | .nctrls = ARRAY_SIZE(sd_ctrls), | 1038 | .nctrls = ARRAY_SIZE(sd_ctrls), |
diff --git a/drivers/media/video/gspca/etoms.c b/drivers/media/video/gspca/etoms.c index fdf4c0ec5e7a..87ce6af9cef2 100644 --- a/drivers/media/video/gspca/etoms.c +++ b/drivers/media/video/gspca/etoms.c | |||
@@ -851,7 +851,7 @@ static int sd_getautogain(struct gspca_dev *gspca_dev, __s32 *val) | |||
851 | } | 851 | } |
852 | 852 | ||
853 | /* sub-driver description */ | 853 | /* sub-driver description */ |
854 | static struct sd_desc sd_desc = { | 854 | static const struct sd_desc sd_desc = { |
855 | .name = MODULE_NAME, | 855 | .name = MODULE_NAME, |
856 | .ctrls = sd_ctrls, | 856 | .ctrls = sd_ctrls, |
857 | .nctrls = ARRAY_SIZE(sd_ctrls), | 857 | .nctrls = ARRAY_SIZE(sd_ctrls), |
diff --git a/drivers/media/video/gspca/gl860/gl860.c b/drivers/media/video/gspca/gl860/gl860.c index 4878c8f66543..9e42476c0eaf 100644 --- a/drivers/media/video/gspca/gl860/gl860.c +++ b/drivers/media/video/gspca/gl860/gl860.c | |||
@@ -161,7 +161,7 @@ static int gl860_build_control_table(struct gspca_dev *gspca_dev) | |||
161 | 161 | ||
162 | /*==================== sud-driver structure initialisation =================*/ | 162 | /*==================== sud-driver structure initialisation =================*/ |
163 | 163 | ||
164 | static struct sd_desc sd_desc_mi1320 = { | 164 | static const struct sd_desc sd_desc_mi1320 = { |
165 | .name = MODULE_NAME, | 165 | .name = MODULE_NAME, |
166 | .ctrls = sd_ctrls_mi1320, | 166 | .ctrls = sd_ctrls_mi1320, |
167 | .nctrls = GL860_NCTRLS, | 167 | .nctrls = GL860_NCTRLS, |
@@ -174,7 +174,7 @@ static struct sd_desc sd_desc_mi1320 = { | |||
174 | .dq_callback = sd_callback, | 174 | .dq_callback = sd_callback, |
175 | }; | 175 | }; |
176 | 176 | ||
177 | static struct sd_desc sd_desc_mi2020 = { | 177 | static const struct sd_desc sd_desc_mi2020 = { |
178 | .name = MODULE_NAME, | 178 | .name = MODULE_NAME, |
179 | .ctrls = sd_ctrls_mi2020, | 179 | .ctrls = sd_ctrls_mi2020, |
180 | .nctrls = GL860_NCTRLS, | 180 | .nctrls = GL860_NCTRLS, |
@@ -187,7 +187,7 @@ static struct sd_desc sd_desc_mi2020 = { | |||
187 | .dq_callback = sd_callback, | 187 | .dq_callback = sd_callback, |
188 | }; | 188 | }; |
189 | 189 | ||
190 | static struct sd_desc sd_desc_mi2020b = { | 190 | static const struct sd_desc sd_desc_mi2020b = { |
191 | .name = MODULE_NAME, | 191 | .name = MODULE_NAME, |
192 | .ctrls = sd_ctrls_mi2020b, | 192 | .ctrls = sd_ctrls_mi2020b, |
193 | .nctrls = GL860_NCTRLS, | 193 | .nctrls = GL860_NCTRLS, |
@@ -200,7 +200,7 @@ static struct sd_desc sd_desc_mi2020b = { | |||
200 | .dq_callback = sd_callback, | 200 | .dq_callback = sd_callback, |
201 | }; | 201 | }; |
202 | 202 | ||
203 | static struct sd_desc sd_desc_ov2640 = { | 203 | static const struct sd_desc sd_desc_ov2640 = { |
204 | .name = MODULE_NAME, | 204 | .name = MODULE_NAME, |
205 | .ctrls = sd_ctrls_ov2640, | 205 | .ctrls = sd_ctrls_ov2640, |
206 | .nctrls = GL860_NCTRLS, | 206 | .nctrls = GL860_NCTRLS, |
@@ -213,7 +213,7 @@ static struct sd_desc sd_desc_ov2640 = { | |||
213 | .dq_callback = sd_callback, | 213 | .dq_callback = sd_callback, |
214 | }; | 214 | }; |
215 | 215 | ||
216 | static struct sd_desc sd_desc_ov9655 = { | 216 | static const struct sd_desc sd_desc_ov9655 = { |
217 | .name = MODULE_NAME, | 217 | .name = MODULE_NAME, |
218 | .ctrls = sd_ctrls_ov9655, | 218 | .ctrls = sd_ctrls_ov9655, |
219 | .nctrls = GL860_NCTRLS, | 219 | .nctrls = GL860_NCTRLS, |
diff --git a/drivers/media/video/gspca/pac7302.c b/drivers/media/video/gspca/pac7302.c index de0b66c4b56e..be0a353afa3a 100644 --- a/drivers/media/video/gspca/pac7302.c +++ b/drivers/media/video/gspca/pac7302.c | |||
@@ -1211,7 +1211,7 @@ static int sd_chip_ident(struct gspca_dev *gspca_dev, | |||
1211 | #endif | 1211 | #endif |
1212 | 1212 | ||
1213 | /* sub-driver description for pac7302 */ | 1213 | /* sub-driver description for pac7302 */ |
1214 | static struct sd_desc sd_desc = { | 1214 | static const struct sd_desc sd_desc = { |
1215 | .name = MODULE_NAME, | 1215 | .name = MODULE_NAME, |
1216 | .ctrls = sd_ctrls, | 1216 | .ctrls = sd_ctrls, |
1217 | .nctrls = ARRAY_SIZE(sd_ctrls), | 1217 | .nctrls = ARRAY_SIZE(sd_ctrls), |
diff --git a/drivers/media/video/gspca/pac7311.c b/drivers/media/video/gspca/pac7311.c index 42cfcdfd8f4f..41f87e9a3426 100644 --- a/drivers/media/video/gspca/pac7311.c +++ b/drivers/media/video/gspca/pac7311.c | |||
@@ -849,7 +849,7 @@ static int sd_getvflip(struct gspca_dev *gspca_dev, __s32 *val) | |||
849 | } | 849 | } |
850 | 850 | ||
851 | /* sub-driver description for pac7311 */ | 851 | /* sub-driver description for pac7311 */ |
852 | static struct sd_desc sd_desc = { | 852 | static const struct sd_desc sd_desc = { |
853 | .name = MODULE_NAME, | 853 | .name = MODULE_NAME, |
854 | .ctrls = sd_ctrls, | 854 | .ctrls = sd_ctrls, |
855 | .nctrls = ARRAY_SIZE(sd_ctrls), | 855 | .nctrls = ARRAY_SIZE(sd_ctrls), |
diff --git a/drivers/media/video/gspca/spca500.c b/drivers/media/video/gspca/spca500.c index fe46868a87f2..7cc302a389de 100644 --- a/drivers/media/video/gspca/spca500.c +++ b/drivers/media/video/gspca/spca500.c | |||
@@ -1047,7 +1047,7 @@ static int sd_get_jcomp(struct gspca_dev *gspca_dev, | |||
1047 | } | 1047 | } |
1048 | 1048 | ||
1049 | /* sub-driver description */ | 1049 | /* sub-driver description */ |
1050 | static struct sd_desc sd_desc = { | 1050 | static const struct sd_desc sd_desc = { |
1051 | .name = MODULE_NAME, | 1051 | .name = MODULE_NAME, |
1052 | .ctrls = sd_ctrls, | 1052 | .ctrls = sd_ctrls, |
1053 | .nctrls = ARRAY_SIZE(sd_ctrls), | 1053 | .nctrls = ARRAY_SIZE(sd_ctrls), |
diff --git a/drivers/media/video/gspca/spca506.c b/drivers/media/video/gspca/spca506.c index 39257e4e074f..a2cc81ccf367 100644 --- a/drivers/media/video/gspca/spca506.c +++ b/drivers/media/video/gspca/spca506.c | |||
@@ -673,7 +673,7 @@ static int sd_gethue(struct gspca_dev *gspca_dev, __s32 *val) | |||
673 | } | 673 | } |
674 | 674 | ||
675 | /* sub-driver description */ | 675 | /* sub-driver description */ |
676 | static struct sd_desc sd_desc = { | 676 | static const struct sd_desc sd_desc = { |
677 | .name = MODULE_NAME, | 677 | .name = MODULE_NAME, |
678 | .ctrls = sd_ctrls, | 678 | .ctrls = sd_ctrls, |
679 | .nctrls = ARRAY_SIZE(sd_ctrls), | 679 | .nctrls = ARRAY_SIZE(sd_ctrls), |