[media] sony-btf-mpx: v4l2_tuner struct is now constant
authorMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Mar 2013 16:51:21 +0000 (13:51 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Sun, 24 Mar 2013 17:04:34 +0000 (14:04 -0300)
A patchset applied earlier changed v4l2_tuner struct parameter at
vidioc_s_tuner to const. Do this change at sony_btf_mpx_s_tuner(),
in order to remove this warning:

drivers/media/i2c/sony-btf-mpx.c:335:2: warning: initialization from incompatible pointer type [enabled by default]
drivers/media/i2c/sony-btf-mpx.c:335:2: warning: (near initialization for 'sony_btf_mpx_tuner_ops.s_tuner') [enabled by default]

Cc: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/i2c/sony-btf-mpx.c

index bc73e8ff0471ee4869b1a7fd984d7e7d4b51ccf4..38cbea98764c901924fdce080abb76569605b9d0 100644 (file)
@@ -311,7 +311,7 @@ static int sony_btf_mpx_g_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt)
        return 0;
 }
 
-static int sony_btf_mpx_s_tuner(struct v4l2_subdev *sd, struct v4l2_tuner *vt)
+static int sony_btf_mpx_s_tuner(struct v4l2_subdev *sd, const struct v4l2_tuner *vt)
 {
        struct sony_btf_mpx *t = to_state(sd);
 
This page took 0.025717 seconds and 5 git commands to generate.