summaryrefslogtreecommitdiffstats
path: root/drivers/media/video/s5p-tv
diff options
context:
space:
mode:
authorMarek Szyprowski2011-08-24 11:43:36 +0200
committerMauro Carvalho Chehab2011-09-06 20:04:27 +0200
commit035aa1475d6e4afdf97dccf6c6d6059063398b57 (patch)
treebef507d9f3c21446f0fb26b657bfdb5f81ca7c02 /drivers/media/video/s5p-tv
parent[media] media: vb2: fix handling MAPPED buffer flag (diff)
downloadkernel-qcow2-linux-035aa1475d6e4afdf97dccf6c6d6059063398b57.tar.gz
kernel-qcow2-linux-035aa1475d6e4afdf97dccf6c6d6059063398b57.tar.xz
kernel-qcow2-linux-035aa1475d6e4afdf97dccf6c6d6059063398b57.zip
[media] media: vb2: change plane sizes array to unsigned int[]
Plane sizes array was declared as unsigned long[], while unsigned int is more than enough for storing size of the video buffer. This patch reduces the size of the array by definiting it as unsigned int[]. Reported-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com> Signed-off-by: Kyungmin Park <kyungmin.park@samsung.com> CC: Pawel Osciak <pawel@osciak.com> Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Diffstat (limited to 'drivers/media/video/s5p-tv')
-rw-r--r--drivers/media/video/s5p-tv/mixer_video.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/s5p-tv/mixer_video.c b/drivers/media/video/s5p-tv/mixer_video.c
index 43ac22f35bc7..8bea0f3927fb 100644
--- a/drivers/media/video/s5p-tv/mixer_video.c
+++ b/drivers/media/video/s5p-tv/mixer_video.c
@@ -728,7 +728,7 @@ static const struct v4l2_file_operations mxr_fops = {
};
static int queue_setup(struct vb2_queue *vq, unsigned int *nbuffers,
- unsigned int *nplanes, unsigned long sizes[],
+ unsigned int *nplanes, unsigned int sizes[],
void *alloc_ctxs[])
{
struct mxr_layer *layer = vb2_get_drv_priv(vq);