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/media/video/gspca/gl860 | |
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/media/video/gspca/gl860')
-rw-r--r-- | drivers/media/video/gspca/gl860/gl860.c | 10 |
1 files changed, 5 insertions, 5 deletions
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, |