Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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>

authored by

Matthijs Kooijman and committed by
Hans Verkuil
655d3eb9 b74c77d3

+1 -1
+1 -1
Documentation/userspace-api/media/v4l/mmap.rst
··· 188 188 buffers[i].start[j] = mmap(NULL, buffer.m.planes[j].length, 189 189 PROT_READ | PROT_WRITE, /* recommended */ 190 190 MAP_SHARED, /* recommended */ 191 - fd, buffer.m.planes[j].m.offset); 191 + fd, buffer.m.planes[j].m.mem_offset); 192 192 193 193 if (MAP_FAILED == buffers[i].start[j]) { 194 194 /* If you do not exit here you should unmap() and free()