diff options
author | Matthijs Kooijman <matthijs@stdin.nl> | 2024-03-14 17:06:07 +0100 |
---|---|---|
committer | Hans Verkuil <hverkuil-cisco@xs4all.nl> | 2024-04-08 13:48:19 +0200 |
commit | 655d3eb92c2adfb64374b310242bc9820bf73d07 (patch) | |
tree | 3aaba614940e9c2fd683daf2130a33ed64f8f4bf /Documentation/userspace-api/media/v4l | |
parent | media: v4l2-common: Add Y210 and Y216 format info (diff) | |
download | linux-655d3eb92c2adfb64374b310242bc9820bf73d07.tar.xz linux-655d3eb92c2adfb64374b310242bc9820bf73d07.zip |
media: docs: Fix mem_offset name in multiplane example
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>
Diffstat (limited to 'Documentation/userspace-api/media/v4l')
-rw-r--r-- | Documentation/userspace-api/media/v4l/mmap.rst | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/Documentation/userspace-api/media/v4l/mmap.rst b/Documentation/userspace-api/media/v4l/mmap.rst index a5672573dd6f..1a48c3cbda17 100644 --- a/Documentation/userspace-api/media/v4l/mmap.rst +++ b/Documentation/userspace-api/media/v4l/mmap.rst @@ -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() |