diff options
| author | Jonathan Corbet <corbet@lwn.net> | 2025-12-23 00:52:57 +0300 |
|---|---|---|
| committer | Jonathan Corbet <corbet@lwn.net> | 2025-12-23 00:52:57 +0300 |
| commit | d07e0857dcb647792a939a769fc73c20de20c28a (patch) | |
| tree | 95566c9ceee76d92fd46a5d73ebbbbe6ac96df55 /include | |
| parent | 82e87387f6e2af9f69a7528733e953fd22e815aa (diff) | |
| parent | aaacd70fb77afe75075e8bdf8e493b0af42eeabd (diff) | |
| download | linux-d07e0857dcb647792a939a769fc73c20de20c28a.tar.xz | |
Merge branch 'mauro-vars' into docs-mw
Mauro says:
As suggested and discussed with Randy, this small series add support
for documenting variables using kernel-doc.
- patch 1: add support for the new feature;
- patch 2: extends to support DEFINE_*;
- patch 3: document two media vars;
- patch 4: fix an issue on kernel-doc.rst markups and automarkup;
- patch 5: document it;
- patch 6: better handle DEFINE_ macros when they don't have static/type;
Since version 5, I'm using "c:macro" to describe variables, as it
avoids Sphinx C domain to try parse the variable. This makes it more
flexible and easier to maintain in long term.
Diffstat (limited to 'include')
| -rw-r--r-- | include/media/v4l2-ioctl.h | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/include/media/v4l2-ioctl.h b/include/media/v4l2-ioctl.h index 6f7a58350441..54c83b18d555 100644 --- a/include/media/v4l2-ioctl.h +++ b/include/media/v4l2-ioctl.h @@ -663,7 +663,22 @@ void v4l_printk_ioctl(const char *prefix, unsigned int cmd); struct video_device; /* names for fancy debug output */ + +/** + * var v4l2_field_names - Helper array mapping ``V4L2_FIELD_*`` to strings. + * + * Specially when printing debug messages, it is interesting to output + * the field order at the V4L2 buffers. This array associates all possible + * values of field pix format from V4L2 API into a string. + */ extern const char *v4l2_field_names[]; + +/** + * var v4l2_type_names - Helper array mapping ``V4L2_BUF_TYPE_*`` to strings. + * + * When printing debug messages, it is interesting to output the V4L2 buffer + * type number with a name that represents its content. + */ extern const char *v4l2_type_names[]; #ifdef CONFIG_COMPAT |
