struct vb2_buffer and struct vb2_v4l2_buffer both have a "struct vb2_plane planes[max]" member ?
Hi all,
While working on converting the atomisp code to videobuf2 I noticed that "struct vb2_buffer" has a:
struct vb2_plane planes[VB2_MAX_PLANES];
member and "struct vb2_v4l2_buffer" extends "struct vb2_plane", yet it also contains a (duplicate?) "struct vb2_plane" array:
struct vb2_v4l2_buffer {
struct vb2_buffer vb2_buf;
...
struct vb2_plane planes[VB2_MAX_PLANES];
};Since both are the exact same type having 2 of them seems weird.
Is there any reasons why we cannot replace all uses of vb2_v4l2_buffer.planes with vb2_v4l2_buffer.vb2_buf.planes and then drop vb2_v4l2_buffer.planes?
Regards,
Hans