summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-03-24 13:51:21 -0300
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-03-24 14:04:34 -0300
commitb781e6be79a394cd6980e9cd8fd5c25822d152b6 (patch)
tree0643b92727a60117faccbf3b292b8b13ebf415b8
parent4e5f1130070ebfdde1b0ea6277e881404e5f34ce (diff)
downloadtalos-obmc-linux-b781e6be79a394cd6980e9cd8fd5c25822d152b6.tar.gz
talos-obmc-linux-b781e6be79a394cd6980e9cd8fd5c25822d152b6.zip
[media] sony-btf-mpx: v4l2_tuner struct is now constant
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>
-rw-r--r--drivers/media/i2c/sony-btf-mpx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/i2c/sony-btf-mpx.c b/drivers/media/i2c/sony-btf-mpx.c
index bc73e8ff0471..38cbea98764c 100644
--- a/drivers/media/i2c/sony-btf-mpx.c
+++ b/drivers/media/i2c/sony-btf-mpx.c
@@ -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);
OpenPOWER on IntegriCloud