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/atmel-isi.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/atmel-isi.c')
-rw-r--r-- | drivers/media/video/atmel-isi.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/media/video/atmel-isi.c b/drivers/media/video/atmel-isi.c index 7b89f00501b8..5a4b2d79ddd8 100644 --- a/drivers/media/video/atmel-isi.c +++ b/drivers/media/video/atmel-isi.c | |||
@@ -249,7 +249,7 @@ static int atmel_isi_wait_status(struct atmel_isi *isi, int wait_reset) | |||
249 | Videobuf operations | 249 | Videobuf operations |
250 | ------------------------------------------------------------------*/ | 250 | ------------------------------------------------------------------*/ |
251 | static int queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, | 251 | static int queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, |
252 | unsigned int *nplanes, unsigned long sizes[], | 252 | unsigned int *nplanes, unsigned int sizes[], |
253 | void *alloc_ctxs[]) | 253 | void *alloc_ctxs[]) |
254 | { | 254 | { |
255 | struct soc_camera_device *icd = soc_camera_from_vb2q(vq); | 255 | struct soc_camera_device *icd = soc_camera_from_vb2q(vq); |