diff options
-rw-r--r-- | drivers/media/video/atmel-isi.c | 2 | ||||
-rw-r--r-- | drivers/media/video/marvell-ccic/mcam-core.c | 2 | ||||
-rw-r--r-- | drivers/media/video/mem2mem_testdev.c | 2 | ||||
-rw-r--r-- | drivers/media/video/mx3_camera.c | 2 | ||||
-rw-r--r-- | drivers/media/video/pwc/pwc-if.c | 2 | ||||
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-capture.c | 2 | ||||
-rw-r--r-- | drivers/media/video/s5p-fimc/fimc-core.c | 2 | ||||
-rw-r--r-- | drivers/media/video/s5p-mfc/s5p_mfc_dec.c | 2 | ||||
-rw-r--r-- | drivers/media/video/s5p-mfc/s5p_mfc_enc.c | 2 | ||||
-rw-r--r-- | drivers/media/video/s5p-tv/mixer_video.c | 2 | ||||
-rw-r--r-- | drivers/media/video/sh_mobile_ceu_camera.c | 4 | ||||
-rw-r--r-- | drivers/media/video/vivi.c | 2 | ||||
-rw-r--r-- | include/media/videobuf2-core.h | 4 |
13 files changed, 15 insertions, 15 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); |
diff --git a/drivers/media/video/marvell-ccic/mcam-core.c b/drivers/media/video/marvell-ccic/mcam-core.c index 83c14514cd52..744cf372e27d 100644 --- a/drivers/media/video/marvell-ccic/mcam-core.c +++ b/drivers/media/video/marvell-ccic/mcam-core.c | |||
@@ -884,7 +884,7 @@ static int mcam_read_setup(struct mcam_camera *cam) | |||
884 | */ | 884 | */ |
885 | 885 | ||
886 | static int mcam_vb_queue_setup(struct vb2_queue *vq, unsigned int *nbufs, | 886 | static int mcam_vb_queue_setup(struct vb2_queue *vq, unsigned int *nbufs, |
887 | unsigned int *num_planes, unsigned long sizes[], | 887 | unsigned int *num_planes, unsigned int sizes[], |
888 | void *alloc_ctxs[]) | 888 | void *alloc_ctxs[]) |
889 | { | 889 | { |
890 | struct mcam_camera *cam = vb2_get_drv_priv(vq); | 890 | struct mcam_camera *cam = vb2_get_drv_priv(vq); |
diff --git a/drivers/media/video/mem2mem_testdev.c b/drivers/media/video/mem2mem_testdev.c index 166bf9349c10..0d0c0d5ac3a4 100644 --- a/drivers/media/video/mem2mem_testdev.c +++ b/drivers/media/video/mem2mem_testdev.c | |||
@@ -739,7 +739,7 @@ static const struct v4l2_ioctl_ops m2mtest_ioctl_ops = { | |||
739 | */ | 739 | */ |
740 | 740 | ||
741 | static int m2mtest_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, | 741 | static int m2mtest_queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, |
742 | unsigned int *nplanes, unsigned long sizes[], | 742 | unsigned int *nplanes, unsigned int sizes[], |
743 | void *alloc_ctxs[]) | 743 | void *alloc_ctxs[]) |
744 | { | 744 | { |
745 | struct m2mtest_ctx *ctx = vb2_get_drv_priv(vq); | 745 | struct m2mtest_ctx *ctx = vb2_get_drv_priv(vq); |
diff --git a/drivers/media/video/mx3_camera.c b/drivers/media/video/mx3_camera.c index c045b47803ad..9ae778535f04 100644 --- a/drivers/media/video/mx3_camera.c +++ b/drivers/media/video/mx3_camera.c | |||
@@ -191,7 +191,7 @@ static void mx3_cam_dma_done(void *arg) | |||
191 | */ | 191 | */ |
192 | static int mx3_videobuf_setup(struct vb2_queue *vq, | 192 | static int mx3_videobuf_setup(struct vb2_queue *vq, |
193 | unsigned int *count, unsigned int *num_planes, | 193 | unsigned int *count, unsigned int *num_planes, |
194 | unsigned long sizes[], void *alloc_ctxs[]) | 194 | unsigned int sizes[], void *alloc_ctxs[]) |
195 | { | 195 | { |
196 | struct soc_camera_device *icd = soc_camera_from_vb2q(vq); | 196 | struct soc_camera_device *icd = soc_camera_from_vb2q(vq); |
197 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); | 197 | struct soc_camera_host *ici = to_soc_camera_host(icd->parent); |
diff --git a/drivers/media/video/pwc/pwc-if.c b/drivers/media/video/pwc/pwc-if.c index 51ca3589b1b5..a7e4f561c860 100644 --- a/drivers/media/video/pwc/pwc-if.c +++ b/drivers/media/video/pwc/pwc-if.c | |||
@@ -745,7 +745,7 @@ static int pwc_video_mmap(struct file *file, struct vm_area_struct *vma) | |||
745 | /* Videobuf2 operations */ | 745 | /* Videobuf2 operations */ |
746 | 746 | ||
747 | static int queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, | 747 | static int queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, |
748 | unsigned int *nplanes, unsigned long sizes[], | 748 | unsigned int *nplanes, unsigned int sizes[], |
749 | void *alloc_ctxs[]) | 749 | void *alloc_ctxs[]) |
750 | { | 750 | { |
751 | struct pwc_device *pdev = vb2_get_drv_priv(vq); | 751 | struct pwc_device *pdev = vb2_get_drv_priv(vq); |
diff --git a/drivers/media/video/s5p-fimc/fimc-capture.c b/drivers/media/video/s5p-fimc/fimc-capture.c index 0d730e55605d..e6afe5f5e24a 100644 --- a/drivers/media/video/s5p-fimc/fimc-capture.c +++ b/drivers/media/video/s5p-fimc/fimc-capture.c | |||
@@ -265,7 +265,7 @@ static unsigned int get_plane_size(struct fimc_frame *fr, unsigned int plane) | |||
265 | } | 265 | } |
266 | 266 | ||
267 | static int queue_setup(struct vb2_queue *vq, unsigned int *num_buffers, | 267 | static int queue_setup(struct vb2_queue *vq, unsigned int *num_buffers, |
268 | unsigned int *num_planes, unsigned long sizes[], | 268 | unsigned int *num_planes, unsigned int sizes[], |
269 | void *allocators[]) | 269 | void *allocators[]) |
270 | { | 270 | { |
271 | struct fimc_ctx *ctx = vq->drv_priv; | 271 | struct fimc_ctx *ctx = vq->drv_priv; |
diff --git a/drivers/media/video/s5p-fimc/fimc-core.c b/drivers/media/video/s5p-fimc/fimc-core.c index aa550666cc0b..36d127f4faec 100644 --- a/drivers/media/video/s5p-fimc/fimc-core.c +++ b/drivers/media/video/s5p-fimc/fimc-core.c | |||
@@ -692,7 +692,7 @@ static void fimc_job_abort(void *priv) | |||
692 | } | 692 | } |
693 | 693 | ||
694 | static int fimc_queue_setup(struct vb2_queue *vq, unsigned int *num_buffers, | 694 | static int fimc_queue_setup(struct vb2_queue *vq, unsigned int *num_buffers, |
695 | unsigned int *num_planes, unsigned long sizes[], | 695 | unsigned int *num_planes, unsigned int sizes[], |
696 | void *allocators[]) | 696 | void *allocators[]) |
697 | { | 697 | { |
698 | struct fimc_ctx *ctx = vb2_get_drv_priv(vq); | 698 | struct fimc_ctx *ctx = vb2_get_drv_priv(vq); |
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_dec.c b/drivers/media/video/s5p-mfc/s5p_mfc_dec.c index b2c5052a9c41..dbc94b877c8f 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_dec.c +++ b/drivers/media/video/s5p-mfc/s5p_mfc_dec.c | |||
@@ -745,7 +745,7 @@ static const struct v4l2_ioctl_ops s5p_mfc_dec_ioctl_ops = { | |||
745 | }; | 745 | }; |
746 | 746 | ||
747 | static int s5p_mfc_queue_setup(struct vb2_queue *vq, unsigned int *buf_count, | 747 | static int s5p_mfc_queue_setup(struct vb2_queue *vq, unsigned int *buf_count, |
748 | unsigned int *plane_count, unsigned long psize[], | 748 | unsigned int *plane_count, unsigned int psize[], |
749 | void *allocators[]) | 749 | void *allocators[]) |
750 | { | 750 | { |
751 | struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); | 751 | struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); |
diff --git a/drivers/media/video/s5p-mfc/s5p_mfc_enc.c b/drivers/media/video/s5p-mfc/s5p_mfc_enc.c index fee094a14f4c..019a9e79704a 100644 --- a/drivers/media/video/s5p-mfc/s5p_mfc_enc.c +++ b/drivers/media/video/s5p-mfc/s5p_mfc_enc.c | |||
@@ -1514,7 +1514,7 @@ static int check_vb_with_fmt(struct s5p_mfc_fmt *fmt, struct vb2_buffer *vb) | |||
1514 | 1514 | ||
1515 | static int s5p_mfc_queue_setup(struct vb2_queue *vq, | 1515 | static int s5p_mfc_queue_setup(struct vb2_queue *vq, |
1516 | unsigned int *buf_count, unsigned int *plane_count, | 1516 | unsigned int *buf_count, unsigned int *plane_count, |
1517 | unsigned long psize[], void *allocators[]) | 1517 | unsigned int psize[], void *allocators[]) |
1518 | { | 1518 | { |
1519 | struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); | 1519 | struct s5p_mfc_ctx *ctx = fh_to_ctx(vq->drv_priv); |
1520 | 1520 | ||
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 = { | |||
728 | }; | 728 | }; |
729 | 729 | ||
730 | static int queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, | 730 | static int queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, |
731 | unsigned int *nplanes, unsigned long sizes[], | 731 | unsigned int *nplanes, unsigned int sizes[], |
732 | void *alloc_ctxs[]) | 732 | void *alloc_ctxs[]) |
733 | { | 733 | { |
734 | struct mxr_layer *layer = vb2_get_drv_priv(vq); | 734 | struct mxr_layer *layer = vb2_get_drv_priv(vq); |
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 | } |
diff --git a/drivers/media/video/vivi.c b/drivers/media/video/vivi.c index b3ae1ba97fc6..cfe68325d659 100644 --- a/drivers/media/video/vivi.c +++ b/drivers/media/video/vivi.c | |||
@@ -651,7 +651,7 @@ static void vivi_stop_generating(struct vivi_dev *dev) | |||
651 | Videobuf operations | 651 | Videobuf operations |
652 | ------------------------------------------------------------------*/ | 652 | ------------------------------------------------------------------*/ |
653 | static int queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, | 653 | static int queue_setup(struct vb2_queue *vq, unsigned int *nbuffers, |
654 | unsigned int *nplanes, unsigned long sizes[], | 654 | unsigned int *nplanes, unsigned int sizes[], |
655 | void *alloc_ctxs[]) | 655 | void *alloc_ctxs[]) |
656 | { | 656 | { |
657 | struct vivi_dev *dev = vb2_get_drv_priv(vq); | 657 | struct vivi_dev *dev = vb2_get_drv_priv(vq); |
diff --git a/include/media/videobuf2-core.h b/include/media/videobuf2-core.h index 984f2bae2578..5287e901e17b 100644 --- a/include/media/videobuf2-core.h +++ b/include/media/videobuf2-core.h | |||
@@ -208,7 +208,7 @@ struct vb2_buffer { | |||
208 | */ | 208 | */ |
209 | struct vb2_ops { | 209 | struct vb2_ops { |
210 | int (*queue_setup)(struct vb2_queue *q, unsigned int *num_buffers, | 210 | int (*queue_setup)(struct vb2_queue *q, unsigned int *num_buffers, |
211 | unsigned int *num_planes, unsigned long sizes[], | 211 | unsigned int *num_planes, unsigned int sizes[], |
212 | void *alloc_ctxs[]); | 212 | void *alloc_ctxs[]); |
213 | 213 | ||
214 | void (*wait_prepare)(struct vb2_queue *q); | 214 | void (*wait_prepare)(struct vb2_queue *q); |
@@ -273,7 +273,7 @@ struct vb2_queue { | |||
273 | wait_queue_head_t done_wq; | 273 | wait_queue_head_t done_wq; |
274 | 274 | ||
275 | void *alloc_ctx[VIDEO_MAX_PLANES]; | 275 | void *alloc_ctx[VIDEO_MAX_PLANES]; |
276 | unsigned long plane_sizes[VIDEO_MAX_PLANES]; | 276 | unsigned int plane_sizes[VIDEO_MAX_PLANES]; |
277 | 277 | ||
278 | unsigned int streaming:1; | 278 | unsigned int streaming:1; |
279 | 279 | ||