]> git.karo-electronics.de Git - linux-beck.git/commitdiff
[media] s5p-mfc: Fix compilation warning
authorSachin Kamat <sachin.kamat@linaro.org>
Sat, 13 Oct 2012 10:18:34 +0000 (07:18 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Thu, 25 Oct 2012 16:32:13 +0000 (14:32 -0200)
Added missing const qualifier.
Without this patch compiler gives the following warning:
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1576:2: warning:
initialization from incompatible pointer type [enabled by default]
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c:1576:2: warning:
(near initialization for ‘s5p_mfc_enc_ioctl_ops.vidioc_subscribe_event’)
[enabled by default]

Signed-off-by: Sachin Kamat <sachin.kamat@linaro.org>
Signed-off-by: Sylwester Nawrocki <s.nawrocki@samsung.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
drivers/media/platform/s5p-mfc/s5p_mfc_enc.c

index 2af6d522f4acf3b94b142281c22edd2ce7c53c44..5c1d727268beeefb1f9f0e5d2e9826429f6b85ad 100644 (file)
@@ -1542,7 +1542,7 @@ int vidioc_encoder_cmd(struct file *file, void *priv,
 }
 
 static int vidioc_subscribe_event(struct v4l2_fh *fh,
-                                       struct v4l2_event_subscription *sub)
+                                 const struct v4l2_event_subscription *sub)
 {
        switch (sub->type) {
        case V4L2_EVENT_EOS: