diff options
author | Marek Szyprowski <m.szyprowski@samsung.com> | 2011-08-24 05:43:36 -0400 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@redhat.com> | 2011-09-06 14:04:27 -0400 |
commit | 035aa1475d6e4afdf97dccf6c6d6059063398b57 (patch) | |
tree | bef507d9f3c21446f0fb26b657bfdb5f81ca7c02 /drivers/media/video/sh_mobile_ceu_camera.c | |
parent | 25a27d91006091e28532053c95fa36b70b79d3ad (diff) |
[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/sh_mobile_ceu_camera.c')
-rw-r--r-- | drivers/media/video/sh_mobile_ceu_camera.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/media/video/sh_mobile_ceu_camera.c b/drivers/media/video/sh_mobile_ceu_camera.c index e54089802b6b..8298c89226b9 100644 --- a/drivers/media/video/sh_mobile_ceu_camera.c +++ b/drivers/media/video/sh_mobile_ceu_camera.c | |||
@@ -218,7 +218,7 @@ static int sh_mobile_ceu_soft_reset(struct sh_mobile_ceu_dev *pcdev) | |||
218 | */ | 218 | */ |
219 | static int sh_mobile_ceu_videobuf_setup(struct vb2_queue *vq, | 219 | static int sh_mobile_ceu_videobuf_setup(struct vb2_queue *vq, |
220 | unsigned int *count, unsigned int *num_planes, | 220 | unsigned int *count, unsigned int *num_planes, |
221 | unsigned long sizes[], void *alloc_ctxs[]) | 221 | unsigned int sizes[], void *alloc_ctxs[]) |
222 | { | 222 | { |
223 | struct soc_camera_device *icd = container_of(vq, struct soc_camera_device, vb2_vidq); | 223 | struct soc_camera_device *icd = container_of(vq, struct soc_camera_device, vb2_vidq); |
224 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); | 224 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); |
@@ -243,7 +243,7 @@ static int sh_mobile_ceu_videobuf_setup(struct vb2_queue *vq, | |||
243 | *count = pcdev->video_limit / PAGE_ALIGN(sizes[0]); | 243 | *count = pcdev->video_limit / PAGE_ALIGN(sizes[0]); |
244 | } | 244 | } |
245 | 245 | ||
246 | dev_dbg(icd->parent, "count=%d, size=%lu\n", *count, sizes[0]); | 246 | dev_dbg(icd->parent, "count=%d, size=%u\n", *count, sizes[0]); |
247 | 247 | ||
248 | return 0; | 248 | return 0; |
249 | } | 249 | } |