aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/video/gspca/pac7311.c
diff options
context:
space:
mode:
authorMárton Németh <nm127@freemail.hu>2010-01-05 10:39:02 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2010-02-26 13:10:29 -0500
commitaabcdfb65be31d7f9486d1400fa217c8827dddd3 (patch)
tree07a47155ad92e4aa9f1f595653e032cac20270b3 /drivers/media/video/gspca/pac7311.c
parent52a9d3ef0034f29cef1c5616faa72aa394b01b65 (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/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 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 */
852static struct sd_desc sd_desc = { 852static 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),