diff options
author | Daniel Lundberg Pedersen <dlp@qtec.com> | 2022-08-31 16:54:59 +0200 |
---|---|---|
committer | Mauro Carvalho Chehab <mchehab@kernel.org> | 2022-09-24 08:51:58 +0200 |
commit | 5cd5f1344434e49a20a6e165e1cee3ead095b32e (patch) | |
tree | 000de37396b83444ac657dbd6d3ffc0dc4f988d0 /Documentation/userspace-api | |
parent | media: platform: mtk-mdp3: add pointer checks and use devm_kfree (diff) | |
download | linux-5cd5f1344434e49a20a6e165e1cee3ead095b32e.tar.xz linux-5cd5f1344434e49a20a6e165e1cee3ead095b32e.zip |
media: docs: libv4l-introduction.rst: Fix function signature and link
v4l2_mmap returns a void*, also link to mmap instead of munmap
Signed-off-by: Daniel Lundberg Pedersen <dlp@qtec.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
Diffstat (limited to 'Documentation/userspace-api')
-rw-r--r-- | Documentation/userspace-api/media/v4l/libv4l-introduction.rst | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/Documentation/userspace-api/media/v4l/libv4l-introduction.rst b/Documentation/userspace-api/media/v4l/libv4l-introduction.rst index 90215313b965..7c8bf160e1c6 100644 --- a/Documentation/userspace-api/media/v4l/libv4l-introduction.rst +++ b/Documentation/userspace-api/media/v4l/libv4l-introduction.rst @@ -136,9 +136,9 @@ V4L2 functions operates like the :c:func:`read()` function. -.. c:function:: void v4l2_mmap(void *start, size_t length, int prot, int flags, int fd, int64_t offset); +.. c:function:: void *v4l2_mmap(void *start, size_t length, int prot, int flags, int fd, int64_t offset); - operates like the :c:func:`munmap()` function. + operates like the :c:func:`mmap()` function. .. c:function:: int v4l2_munmap(void *_start, size_t length); |