]> www.infradead.org Git - users/dwmw2/linux.git/commitdiff
media: docs: Fix mem_offset name in multiplane example
authorMatthijs Kooijman <matthijs@stdin.nl>
Thu, 14 Mar 2024 16:06:07 +0000 (17:06 +0100)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Mon, 8 Apr 2024 11:48:19 +0000 (13:48 +0200)
The v4l2_buffer type has an "offset" field, but the corresponding field
in the v4l2_plane type is called "mem_offset". Use the correct name in
this example.

Signed-off-by: Matthijs Kooijman <matthijs@stdin.nl>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Documentation/userspace-api/media/v4l/mmap.rst

index a5672573dd6fdc0bb3ce305c3b3274dd45aca25d..1a48c3cbda179857d82a435e2b4f8603900ae409 100644 (file)
@@ -188,7 +188,7 @@ Example: Mapping buffers in the multi-planar API
            buffers[i].start[j] = mmap(NULL, buffer.m.planes[j].length,
                     PROT_READ | PROT_WRITE, /* recommended */
                     MAP_SHARED,             /* recommended */
-                    fd, buffer.m.planes[j].m.offset);
+                    fd, buffer.m.planes[j].m.mem_offset);
 
            if (MAP_FAILED == buffers[i].start[j]) {
                /* If you do not exit here you should unmap() and free()