Skip to content

Commit

Permalink
V4L/DVB (11416): gspca - m5602: Constify all sensor structs
Browse files Browse the repository at this point in the history
Signed-off-by: Erik Andrén <erik.andren@gmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Erik Andr?n authored and Mauro Carvalho Chehab committed Apr 7, 2009
1 parent 71b755b commit dac136e
Show file tree
Hide file tree
Showing 5 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/m5602/m5602_mt9m111.h
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ int mt9m111_set_hflip(struct gspca_dev *gspca_dev, __s32 val);
int mt9m111_get_gain(struct gspca_dev *gspca_dev, __s32 *val);
int mt9m111_set_gain(struct gspca_dev *gspca_dev, __s32 val);

static struct m5602_sensor mt9m111 = {
const static struct m5602_sensor mt9m111 = {
.name = "MT9M111",

.i2c_slave_id = 0xba,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/m5602/m5602_ov9650.h
Original file line number Diff line number Diff line change
Expand Up @@ -156,7 +156,7 @@ int ov9650_set_auto_white_balance(struct gspca_dev *gspca_dev, __s32 val);
int ov9650_get_auto_gain(struct gspca_dev *gspca_dev, __s32 *val);
int ov9650_set_auto_gain(struct gspca_dev *gspca_dev, __s32 val);

static struct m5602_sensor ov9650 = {
const static struct m5602_sensor ov9650 = {
.name = "OV9650",
.i2c_slave_id = 0x60,
.i2c_regW = 1,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/m5602/m5602_po1030.h
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ int po1030_set_hflip(struct gspca_dev *gspca_dev, __s32 val);
int po1030_get_vflip(struct gspca_dev *gspca_dev, __s32 *val);
int po1030_set_vflip(struct gspca_dev *gspca_dev, __s32 val);

static struct m5602_sensor po1030 = {
static const struct m5602_sensor po1030 = {
.name = "PO1030",

.i2c_slave_id = 0xdc,
Expand Down
3 changes: 1 addition & 2 deletions drivers/media/video/gspca/m5602/m5602_s5k4aa.h
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,7 @@ int s5k4aa_set_hflip(struct gspca_dev *gspca_dev, __s32 val);
int s5k4aa_get_gain(struct gspca_dev *gspca_dev, __s32 *val);
int s5k4aa_set_gain(struct gspca_dev *gspca_dev, __s32 val);


static struct m5602_sensor s5k4aa = {
static const struct m5602_sensor s5k4aa = {
.name = "S5K4AA",
.probe = s5k4aa_probe,
.init = s5k4aa_init,
Expand Down
2 changes: 1 addition & 1 deletion drivers/media/video/gspca/m5602/m5602_s5k83a.h
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ int s5k83a_set_vflip(struct gspca_dev *gspca_dev, __s32 val);
int s5k83a_get_hflip(struct gspca_dev *gspca_dev, __s32 *val);
int s5k83a_set_hflip(struct gspca_dev *gspca_dev, __s32 val);

static struct m5602_sensor s5k83a = {
static const struct m5602_sensor s5k83a = {
.name = "S5K83A",
.probe = s5k83a_probe,
.init = s5k83a_init,
Expand Down

0 comments on commit dac136e

Please sign in to comment.