aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media
diff options
context:
space:
mode:
authorErik Andr?n <erik.andren@gmail.com>2008-12-30 15:35:34 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2009-04-06 20:44:42 -0400
commitdac136e655faccb51ea2869388e5db5a5dd0b148 (patch)
treea1a656caf0b91b16da4e377c7ec724b2a06d6193 /drivers/media
parent71b755b08e9946592c5354fbe6373eff7660ccbd (diff)
V4L/DVB (11416): gspca - m5602: Constify all sensor structs
Signed-off-by: Erik Andrén <erik.andren@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media')
-rw-r--r--drivers/media/video/gspca/m5602/m5602_mt9m111.h2
-rw-r--r--drivers/media/video/gspca/m5602/m5602_ov9650.h2
-rw-r--r--drivers/media/video/gspca/m5602/m5602_po1030.h2
-rw-r--r--drivers/media/video/gspca/m5602/m5602_s5k4aa.h3
-rw-r--r--drivers/media/video/gspca/m5602/m5602_s5k83a.h2
5 files changed, 5 insertions, 6 deletions
diff --git a/drivers/media/video/gspca/m5602/m5602_mt9m111.h b/drivers/media/video/gspca/m5602/m5602_mt9m111.h
index cb04d8fefeda..00c6db02bdb7 100644
--- a/drivers/media/video/gspca/m5602/m5602_mt9m111.h
+++ b/drivers/media/video/gspca/m5602/m5602_mt9m111.h
@@ -94,7 +94,7 @@ int mt9m111_set_hflip(struct gspca_dev *gspca_dev, __s32 val);
94int mt9m111_get_gain(struct gspca_dev *gspca_dev, __s32 *val); 94int mt9m111_get_gain(struct gspca_dev *gspca_dev, __s32 *val);
95int mt9m111_set_gain(struct gspca_dev *gspca_dev, __s32 val); 95int mt9m111_set_gain(struct gspca_dev *gspca_dev, __s32 val);
96 96
97static struct m5602_sensor mt9m111 = { 97const static struct m5602_sensor mt9m111 = {
98 .name = "MT9M111", 98 .name = "MT9M111",
99 99
100 .i2c_slave_id = 0xba, 100 .i2c_slave_id = 0xba,
diff --git a/drivers/media/video/gspca/m5602/m5602_ov9650.h b/drivers/media/video/gspca/m5602/m5602_ov9650.h
index 6bfe7a9c8414..08ae7ea96ffa 100644
--- a/drivers/media/video/gspca/m5602/m5602_ov9650.h
+++ b/drivers/media/video/gspca/m5602/m5602_ov9650.h
@@ -156,7 +156,7 @@ int ov9650_set_auto_white_balance(struct gspca_dev *gspca_dev, __s32 val);
156int ov9650_get_auto_gain(struct gspca_dev *gspca_dev, __s32 *val); 156int ov9650_get_auto_gain(struct gspca_dev *gspca_dev, __s32 *val);
157int ov9650_set_auto_gain(struct gspca_dev *gspca_dev, __s32 val); 157int ov9650_set_auto_gain(struct gspca_dev *gspca_dev, __s32 val);
158 158
159static struct m5602_sensor ov9650 = { 159const static struct m5602_sensor ov9650 = {
160 .name = "OV9650", 160 .name = "OV9650",
161 .i2c_slave_id = 0x60, 161 .i2c_slave_id = 0x60,
162 .i2c_regW = 1, 162 .i2c_regW = 1,
diff --git a/drivers/media/video/gspca/m5602/m5602_po1030.h b/drivers/media/video/gspca/m5602/m5602_po1030.h
index e68ae88965a0..c10b12335818 100644
--- a/drivers/media/video/gspca/m5602/m5602_po1030.h
+++ b/drivers/media/video/gspca/m5602/m5602_po1030.h
@@ -141,7 +141,7 @@ int po1030_set_hflip(struct gspca_dev *gspca_dev, __s32 val);
141int po1030_get_vflip(struct gspca_dev *gspca_dev, __s32 *val); 141int po1030_get_vflip(struct gspca_dev *gspca_dev, __s32 *val);
142int po1030_set_vflip(struct gspca_dev *gspca_dev, __s32 val); 142int po1030_set_vflip(struct gspca_dev *gspca_dev, __s32 val);
143 143
144static struct m5602_sensor po1030 = { 144static const struct m5602_sensor po1030 = {
145 .name = "PO1030", 145 .name = "PO1030",
146 146
147 .i2c_slave_id = 0xdc, 147 .i2c_slave_id = 0xdc,
diff --git a/drivers/media/video/gspca/m5602/m5602_s5k4aa.h b/drivers/media/video/gspca/m5602/m5602_s5k4aa.h
index ec96c8e052a8..ca854d4f9475 100644
--- a/drivers/media/video/gspca/m5602/m5602_s5k4aa.h
+++ b/drivers/media/video/gspca/m5602/m5602_s5k4aa.h
@@ -77,8 +77,7 @@ int s5k4aa_set_hflip(struct gspca_dev *gspca_dev, __s32 val);
77int s5k4aa_get_gain(struct gspca_dev *gspca_dev, __s32 *val); 77int s5k4aa_get_gain(struct gspca_dev *gspca_dev, __s32 *val);
78int s5k4aa_set_gain(struct gspca_dev *gspca_dev, __s32 val); 78int s5k4aa_set_gain(struct gspca_dev *gspca_dev, __s32 val);
79 79
80 80static const struct m5602_sensor s5k4aa = {
81static struct m5602_sensor s5k4aa = {
82 .name = "S5K4AA", 81 .name = "S5K4AA",
83 .probe = s5k4aa_probe, 82 .probe = s5k4aa_probe,
84 .init = s5k4aa_init, 83 .init = s5k4aa_init,
diff --git a/drivers/media/video/gspca/m5602/m5602_s5k83a.h b/drivers/media/video/gspca/m5602/m5602_s5k83a.h
index 9b9450fbd3dc..819ab25272be 100644
--- a/drivers/media/video/gspca/m5602/m5602_s5k83a.h
+++ b/drivers/media/video/gspca/m5602/m5602_s5k83a.h
@@ -61,7 +61,7 @@ int s5k83a_set_vflip(struct gspca_dev *gspca_dev, __s32 val);
61int s5k83a_get_hflip(struct gspca_dev *gspca_dev, __s32 *val); 61int s5k83a_get_hflip(struct gspca_dev *gspca_dev, __s32 *val);
62int s5k83a_set_hflip(struct gspca_dev *gspca_dev, __s32 val); 62int s5k83a_set_hflip(struct gspca_dev *gspca_dev, __s32 val);
63 63
64static struct m5602_sensor s5k83a = { 64static const struct m5602_sensor s5k83a = {
65 .name = "S5K83A", 65 .name = "S5K83A",
66 .probe = s5k83a_probe, 66 .probe = s5k83a_probe,
67 .init = s5k83a_init, 67 .init = s5k83a_init,