Skip to content
Snippets Groups Projects
Commit 59028d4f authored by Benjamin Gaignard's avatar Benjamin Gaignard
Browse files

media: atomisp: Stop direct calls to queue num_buffers field


Use vb2_get_num_buffers() to avoid using queue num_buffers field directly.

Signed-off-by: default avatarBenjamin Gaignard <benjamin.gaignard@collabora.com>
parent 42ec0730
No related branches found
No related tags found
No related merge requests found
......@@ -1028,7 +1028,7 @@ static int atomisp_qbuf_wrapper(struct file *file, void *fh, struct v4l2_buffer
struct atomisp_device *isp = video_get_drvdata(vdev);
struct atomisp_video_pipe *pipe = atomisp_to_video_pipe(vdev);
if (buf->index >= vdev->queue->num_buffers)
if (buf->index >= vb2_get_num_buffers(vdev->queue))
return -EINVAL;
if (buf->reserved2 & ATOMISP_BUFFER_HAS_PER_FRAME_SETTING) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment