[media] v4l2: add const to argument of write-only s_register ioctl
This ioctl is defined as IOW, so pass the argument as const. Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com> Acked-by: Guennadi Liakhovetski <g.liakhovetski@gmx.de> Acked-by: Lad, Prabhakar <prabhakar.csengg@gmail.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
This commit is contained in:

committed by
Mauro Carvalho Chehab

parent
b5656e8b73
commit
977ba3b1b7
@@ -354,7 +354,7 @@ static int ad9389b_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int ad9389b_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int ad9389b_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -507,7 +507,7 @@ static int adv7183_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int adv7183_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int adv7183_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -699,7 +699,7 @@ static int adv7604_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int adv7604_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -101,7 +101,7 @@ static int ak881x_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int ak881x_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -110,7 +110,7 @@ static int cs5345_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *r
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cs5345_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int cs5345_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -1671,7 +1671,7 @@ static int cx25840_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int cx25840_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int cx25840_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -96,7 +96,7 @@ static int m52790_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *r
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int m52790_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int m52790_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct m52790_state *state = to_state(sd);
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
@@ -548,7 +548,7 @@ static int mt9m032_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int mt9m032_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct mt9m032 *sensor = to_mt9m032(sd);
|
||||
struct i2c_client *client = v4l2_get_subdevdata(&sensor->subdev);
|
||||
|
@@ -421,7 +421,7 @@ static int mt9v011_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int mt9v011_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -1487,7 +1487,7 @@ static int ov7670_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *r
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int ov7670_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int ov7670_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -1428,7 +1428,7 @@ static int saa711x_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int saa711x_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int saa711x_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -672,7 +672,7 @@ static int saa7127_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int saa7127_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int saa7127_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -988,7 +988,7 @@ static int saa717x_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int saa717x_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int saa717x_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
u16 addr = reg->reg & 0xffff;
|
||||
|
@@ -360,7 +360,7 @@ static int mt9m001_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int mt9m001_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -641,7 +641,7 @@ static int mt9m111_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int mt9m111_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -430,7 +430,7 @@ static int mt9t031_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int mt9t031_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -766,7 +766,7 @@ static int mt9t112_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int mt9t112_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
int ret;
|
||||
|
@@ -497,7 +497,7 @@ static int mt9v022_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int mt9v022_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -756,7 +756,7 @@ static int ov2640_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int ov2640_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -708,7 +708,7 @@ static int ov5642_get_register(struct v4l2_subdev *sd, struct v4l2_dbg_register
|
||||
return ret;
|
||||
}
|
||||
|
||||
static int ov5642_set_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int ov5642_set_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -421,7 +421,7 @@ static int ov6650_get_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int ov6650_set_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -652,7 +652,7 @@ static int ov772x_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int ov772x_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -322,7 +322,7 @@ static int ov9640_get_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int ov9640_set_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -835,7 +835,7 @@ static int ov9740_get_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int ov9740_set_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -1161,7 +1161,7 @@ static int rj54n1_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int rj54n1_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -554,7 +554,7 @@ static int tw9910_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int tw9910_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -245,7 +245,7 @@ static int ths7303_g_register(struct v4l2_subdev *sd,
|
||||
}
|
||||
|
||||
static int ths7303_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -1067,7 +1067,7 @@ static int tvp5150_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int tvp5150_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int tvp5150_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -768,7 +768,7 @@ static int tvp7002_g_register(struct v4l2_subdev *sd,
|
||||
* -EPERM if call not allowed.
|
||||
*/
|
||||
static int tvp7002_s_register(struct v4l2_subdev *sd,
|
||||
struct v4l2_dbg_register *reg)
|
||||
const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -175,7 +175,7 @@ static int upd64031a_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int upd64031a_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int upd64031a_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -133,7 +133,7 @@ static int upd64083_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int upd64083_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int upd64083_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
@@ -748,7 +748,7 @@ static int vs6624_g_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *r
|
||||
return 0;
|
||||
}
|
||||
|
||||
static int vs6624_s_register(struct v4l2_subdev *sd, struct v4l2_dbg_register *reg)
|
||||
static int vs6624_s_register(struct v4l2_subdev *sd, const struct v4l2_dbg_register *reg)
|
||||
{
|
||||
struct i2c_client *client = v4l2_get_subdevdata(sd);
|
||||
|
||||
|
Reference in New Issue
Block a user