diff options
author | Erik Andr?n <erik.andren@gmail.com> | 2008-12-30 15:35:34 -0500 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2009-04-06 20:44:42 -0400 |
commit | dac136e655faccb51ea2869388e5db5a5dd0b148 (patch) | |
tree | a1a656caf0b91b16da4e377c7ec724b2a06d6193 /drivers/media | |
parent | 71b755b08e9946592c5354fbe6373eff7660ccbd (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.h | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_ov9650.h | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_po1030.h | 2 | ||||
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_s5k4aa.h | 3 | ||||
-rw-r--r-- | drivers/media/video/gspca/m5602/m5602_s5k83a.h | 2 |
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 cb04d8fefed..00c6db02bdb 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); | |||
94 | int mt9m111_get_gain(struct gspca_dev *gspca_dev, __s32 *val); | 94 | int mt9m111_get_gain(struct gspca_dev *gspca_dev, __s32 *val); |
95 | int mt9m111_set_gain(struct gspca_dev *gspca_dev, __s32 val); | 95 | int mt9m111_set_gain(struct gspca_dev *gspca_dev, __s32 val); |
96 | 96 | ||
97 | static struct m5602_sensor mt9m111 = { | 97 | const 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 6bfe7a9c841..08ae7ea96ff 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); | |||
156 | int ov9650_get_auto_gain(struct gspca_dev *gspca_dev, __s32 *val); | 156 | int ov9650_get_auto_gain(struct gspca_dev *gspca_dev, __s32 *val); |
157 | int ov9650_set_auto_gain(struct gspca_dev *gspca_dev, __s32 val); | 157 | int ov9650_set_auto_gain(struct gspca_dev *gspca_dev, __s32 val); |
158 | 158 | ||
159 | static struct m5602_sensor ov9650 = { | 159 | const 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 e68ae88965a..c10b1233581 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); | |||
141 | int po1030_get_vflip(struct gspca_dev *gspca_dev, __s32 *val); | 141 | int po1030_get_vflip(struct gspca_dev *gspca_dev, __s32 *val); |
142 | int po1030_set_vflip(struct gspca_dev *gspca_dev, __s32 val); | 142 | int po1030_set_vflip(struct gspca_dev *gspca_dev, __s32 val); |
143 | 143 | ||
144 | static struct m5602_sensor po1030 = { | 144 | static 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 ec96c8e052a..ca854d4f947 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); | |||
77 | int s5k4aa_get_gain(struct gspca_dev *gspca_dev, __s32 *val); | 77 | int s5k4aa_get_gain(struct gspca_dev *gspca_dev, __s32 *val); |
78 | int s5k4aa_set_gain(struct gspca_dev *gspca_dev, __s32 val); | 78 | int s5k4aa_set_gain(struct gspca_dev *gspca_dev, __s32 val); |
79 | 79 | ||
80 | 80 | static const struct m5602_sensor s5k4aa = { | |
81 | static 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 9b9450fbd3d..819ab25272b 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); | |||
61 | int s5k83a_get_hflip(struct gspca_dev *gspca_dev, __s32 *val); | 61 | int s5k83a_get_hflip(struct gspca_dev *gspca_dev, __s32 *val); |
62 | int s5k83a_set_hflip(struct gspca_dev *gspca_dev, __s32 val); | 62 | int s5k83a_set_hflip(struct gspca_dev *gspca_dev, __s32 val); |
63 | 63 | ||
64 | static struct m5602_sensor s5k83a = { | 64 | static 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, |