mirror of
git://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2025-05-24 10:39:52 +00:00
media: core headers: fix kernel-doc warnings
This patch fixes the following kernel-doc warnings: include/uapi/linux/videodev2.h:996: warning: Function parameter or member 'm' not described in 'v4l2_plane' include/uapi/linux/videodev2.h:996: warning: Function parameter or member 'reserved' not described in 'v4l2_plane' include/uapi/linux/videodev2.h:1057: warning: Function parameter or member 'm' not described in 'v4l2_buffer' include/uapi/linux/videodev2.h:1057: warning: Function parameter or member 'reserved2' not described in 'v4l2_buffer' include/uapi/linux/videodev2.h:1057: warning: Function parameter or member 'reserved' not described in 'v4l2_buffer' include/uapi/linux/videodev2.h:1068: warning: Function parameter or member 'tv' not described in 'v4l2_timeval_to_ns' include/uapi/linux/videodev2.h:1068: warning: Excess function parameter 'ts' description in 'v4l2_timeval_to_ns' include/uapi/linux/videodev2.h:1138: warning: Function parameter or member 'reserved' not described in 'v4l2_exportbuffer' include/uapi/linux/videodev2.h:2237: warning: Function parameter or member 'reserved' not described in 'v4l2_plane_pix_format' include/uapi/linux/videodev2.h:2270: warning: Function parameter or member 'hsv_enc' not described in 'v4l2_pix_format_mplane' include/uapi/linux/videodev2.h:2270: warning: Function parameter or member 'reserved' not described in 'v4l2_pix_format_mplane' include/uapi/linux/videodev2.h:2281: warning: Function parameter or member 'reserved' not described in 'v4l2_sdr_format' include/uapi/linux/videodev2.h:2315: warning: Function parameter or member 'fmt' not described in 'v4l2_format' include/uapi/linux/v4l2-subdev.h:53: warning: Function parameter or member 'reserved' not described in 'v4l2_subdev_format' include/uapi/linux/v4l2-subdev.h:66: warning: Function parameter or member 'reserved' not described in 'v4l2_subdev_crop' include/uapi/linux/v4l2-subdev.h:89: warning: Function parameter or member 'reserved' not described in 'v4l2_subdev_mbus_code_enum' include/uapi/linux/v4l2-subdev.h:108: warning: Function parameter or member 'min_width' not described in 'v4l2_subdev_frame_size_enum' include/uapi/linux/v4l2-subdev.h:108: warning: Function parameter or member 'max_width' not described in 'v4l2_subdev_frame_size_enum' include/uapi/linux/v4l2-subdev.h:108: warning: Function parameter or member 'min_height' not described in 'v4l2_subdev_frame_size_enum' include/uapi/linux/v4l2-subdev.h:108: warning: Function parameter or member 'max_height' not described in 'v4l2_subdev_frame_size_enum' include/uapi/linux/v4l2-subdev.h:108: warning: Function parameter or member 'reserved' not described in 'v4l2_subdev_frame_size_enum' include/uapi/linux/v4l2-subdev.h:119: warning: Function parameter or member 'reserved' not described in 'v4l2_subdev_frame_interval' include/uapi/linux/v4l2-subdev.h:140: warning: Function parameter or member 'reserved' not described in 'v4l2_subdev_frame_interval_enum' include/uapi/linux/cec.h:406: warning: Function parameter or member 'raw' not described in 'cec_connector_info' include/uapi/linux/cec.h:470: warning: Function parameter or member 'flags' not described in 'cec_event' include/media/v4l2-h264.h:82: warning: Function parameter or member 'reflist' not described in 'v4l2_h264_build_p_ref_list' include/media/v4l2-h264.h:82: warning: expecting prototype for v4l2_h264_build_b_ref_lists(). Prototype was for v4l2_h264_build_p_ref_list() instead include/media/cec.h:50: warning: Function parameter or member 'lock' not described in 'cec_devnode' include/media/v4l2-jpeg.h:122: warning: Function parameter or member 'num_dht' not described in 'v4l2_jpeg_header' include/media/v4l2-jpeg.h:122: warning: Function parameter or member 'num_dqt' not described in 'v4l2_jpeg_header' Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
This commit is contained in:
parent
f550eca585
commit
f12b81e47f
6 changed files with 33 additions and 7 deletions
|
@ -28,8 +28,8 @@
|
||||||
* @minor: device node minor number
|
* @minor: device node minor number
|
||||||
* @registered: the device was correctly registered
|
* @registered: the device was correctly registered
|
||||||
* @unregistered: the device was unregistered
|
* @unregistered: the device was unregistered
|
||||||
* @fhs_lock: lock to control access to the filehandle list
|
|
||||||
* @fhs: the list of open filehandles (cec_fh)
|
* @fhs: the list of open filehandles (cec_fh)
|
||||||
|
* @lock: lock to control access to this structure
|
||||||
*
|
*
|
||||||
* This structure represents a cec-related device node.
|
* This structure represents a cec-related device node.
|
||||||
*
|
*
|
||||||
|
|
|
@ -66,11 +66,11 @@ v4l2_h264_build_b_ref_lists(const struct v4l2_h264_reflist_builder *builder,
|
||||||
u8 *b0_reflist, u8 *b1_reflist);
|
u8 *b0_reflist, u8 *b1_reflist);
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* v4l2_h264_build_b_ref_lists() - Build the P reference list
|
* v4l2_h264_build_p_ref_list() - Build the P reference list
|
||||||
*
|
*
|
||||||
* @builder: reference list builder context
|
* @builder: reference list builder context
|
||||||
* @p_reflist: 16-bytes array used to store the P reference list. Each entry
|
* @reflist: 16-bytes array used to store the P reference list. Each entry
|
||||||
* is an index in the DPB
|
* is an index in the DPB
|
||||||
*
|
*
|
||||||
* This functions builds the P reference lists. This procedure is describe in
|
* This functions builds the P reference lists. This procedure is describe in
|
||||||
* section '8.2.4 Decoding process for reference picture lists construction'
|
* section '8.2.4 Decoding process for reference picture lists construction'
|
||||||
|
|
|
@ -91,7 +91,9 @@ struct v4l2_jpeg_scan_header {
|
||||||
* struct v4l2_jpeg_header - parsed JPEG header
|
* struct v4l2_jpeg_header - parsed JPEG header
|
||||||
* @sof: pointer to frame header and size
|
* @sof: pointer to frame header and size
|
||||||
* @sos: pointer to scan header and size
|
* @sos: pointer to scan header and size
|
||||||
|
* @num_dht: number of entries in @dht
|
||||||
* @dht: pointers to huffman tables and sizes
|
* @dht: pointers to huffman tables and sizes
|
||||||
|
* @num_dqt: number of entries in @dqt
|
||||||
* @dqt: pointers to quantization tables and sizes
|
* @dqt: pointers to quantization tables and sizes
|
||||||
* @frame: parsed frame header
|
* @frame: parsed frame header
|
||||||
* @scan: pointer to parsed scan header, optional
|
* @scan: pointer to parsed scan header, optional
|
||||||
|
|
|
@ -396,6 +396,7 @@ struct cec_drm_connector_info {
|
||||||
* associated with the CEC adapter.
|
* associated with the CEC adapter.
|
||||||
* @type: connector type (if any)
|
* @type: connector type (if any)
|
||||||
* @drm: drm connector info
|
* @drm: drm connector info
|
||||||
|
* @raw: array to pad the union
|
||||||
*/
|
*/
|
||||||
struct cec_connector_info {
|
struct cec_connector_info {
|
||||||
__u32 type;
|
__u32 type;
|
||||||
|
@ -453,7 +454,7 @@ struct cec_event_lost_msgs {
|
||||||
* struct cec_event - CEC event structure
|
* struct cec_event - CEC event structure
|
||||||
* @ts: the timestamp of when the event was sent.
|
* @ts: the timestamp of when the event was sent.
|
||||||
* @event: the event.
|
* @event: the event.
|
||||||
* array.
|
* @flags: event flags.
|
||||||
* @state_change: the event payload for CEC_EVENT_STATE_CHANGE.
|
* @state_change: the event payload for CEC_EVENT_STATE_CHANGE.
|
||||||
* @lost_msgs: the event payload for CEC_EVENT_LOST_MSGS.
|
* @lost_msgs: the event payload for CEC_EVENT_LOST_MSGS.
|
||||||
* @raw: array to pad the union.
|
* @raw: array to pad the union.
|
||||||
|
|
|
@ -44,6 +44,7 @@ enum v4l2_subdev_format_whence {
|
||||||
* @which: format type (from enum v4l2_subdev_format_whence)
|
* @which: format type (from enum v4l2_subdev_format_whence)
|
||||||
* @pad: pad number, as reported by the media API
|
* @pad: pad number, as reported by the media API
|
||||||
* @format: media bus format (format code and frame size)
|
* @format: media bus format (format code and frame size)
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*/
|
*/
|
||||||
struct v4l2_subdev_format {
|
struct v4l2_subdev_format {
|
||||||
__u32 which;
|
__u32 which;
|
||||||
|
@ -57,6 +58,7 @@ struct v4l2_subdev_format {
|
||||||
* @which: format type (from enum v4l2_subdev_format_whence)
|
* @which: format type (from enum v4l2_subdev_format_whence)
|
||||||
* @pad: pad number, as reported by the media API
|
* @pad: pad number, as reported by the media API
|
||||||
* @rect: pad crop rectangle boundaries
|
* @rect: pad crop rectangle boundaries
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*/
|
*/
|
||||||
struct v4l2_subdev_crop {
|
struct v4l2_subdev_crop {
|
||||||
__u32 which;
|
__u32 which;
|
||||||
|
@ -78,6 +80,7 @@ struct v4l2_subdev_crop {
|
||||||
* @code: format code (MEDIA_BUS_FMT_ definitions)
|
* @code: format code (MEDIA_BUS_FMT_ definitions)
|
||||||
* @which: format type (from enum v4l2_subdev_format_whence)
|
* @which: format type (from enum v4l2_subdev_format_whence)
|
||||||
* @flags: flags set by the driver, (V4L2_SUBDEV_MBUS_CODE_*)
|
* @flags: flags set by the driver, (V4L2_SUBDEV_MBUS_CODE_*)
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*/
|
*/
|
||||||
struct v4l2_subdev_mbus_code_enum {
|
struct v4l2_subdev_mbus_code_enum {
|
||||||
__u32 pad;
|
__u32 pad;
|
||||||
|
@ -90,10 +93,15 @@ struct v4l2_subdev_mbus_code_enum {
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* struct v4l2_subdev_frame_size_enum - Media bus format enumeration
|
* struct v4l2_subdev_frame_size_enum - Media bus format enumeration
|
||||||
* @pad: pad number, as reported by the media API
|
|
||||||
* @index: format index during enumeration
|
* @index: format index during enumeration
|
||||||
|
* @pad: pad number, as reported by the media API
|
||||||
* @code: format code (MEDIA_BUS_FMT_ definitions)
|
* @code: format code (MEDIA_BUS_FMT_ definitions)
|
||||||
|
* @min_width: minimum frame width, in pixels
|
||||||
|
* @max_width: maximum frame width, in pixels
|
||||||
|
* @min_height: minimum frame height, in pixels
|
||||||
|
* @max_height: maximum frame height, in pixels
|
||||||
* @which: format type (from enum v4l2_subdev_format_whence)
|
* @which: format type (from enum v4l2_subdev_format_whence)
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*/
|
*/
|
||||||
struct v4l2_subdev_frame_size_enum {
|
struct v4l2_subdev_frame_size_enum {
|
||||||
__u32 index;
|
__u32 index;
|
||||||
|
@ -111,6 +119,7 @@ struct v4l2_subdev_frame_size_enum {
|
||||||
* struct v4l2_subdev_frame_interval - Pad-level frame rate
|
* struct v4l2_subdev_frame_interval - Pad-level frame rate
|
||||||
* @pad: pad number, as reported by the media API
|
* @pad: pad number, as reported by the media API
|
||||||
* @interval: frame interval in seconds
|
* @interval: frame interval in seconds
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*/
|
*/
|
||||||
struct v4l2_subdev_frame_interval {
|
struct v4l2_subdev_frame_interval {
|
||||||
__u32 pad;
|
__u32 pad;
|
||||||
|
@ -127,6 +136,7 @@ struct v4l2_subdev_frame_interval {
|
||||||
* @height: frame height in pixels
|
* @height: frame height in pixels
|
||||||
* @interval: frame interval in seconds
|
* @interval: frame interval in seconds
|
||||||
* @which: format type (from enum v4l2_subdev_format_whence)
|
* @which: format type (from enum v4l2_subdev_format_whence)
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*/
|
*/
|
||||||
struct v4l2_subdev_frame_interval_enum {
|
struct v4l2_subdev_frame_interval_enum {
|
||||||
__u32 index;
|
__u32 index;
|
||||||
|
|
|
@ -976,8 +976,10 @@ struct v4l2_requestbuffers {
|
||||||
* pointing to this plane
|
* pointing to this plane
|
||||||
* @fd: when memory is V4L2_MEMORY_DMABUF, a userspace file
|
* @fd: when memory is V4L2_MEMORY_DMABUF, a userspace file
|
||||||
* descriptor associated with this plane
|
* descriptor associated with this plane
|
||||||
|
* @m: union of @mem_offset, @userptr and @fd
|
||||||
* @data_offset: offset in the plane to the start of data; usually 0,
|
* @data_offset: offset in the plane to the start of data; usually 0,
|
||||||
* unless there is a header in front of the data
|
* unless there is a header in front of the data
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*
|
*
|
||||||
* Multi-planar buffers consist of one or more planes, e.g. an YCbCr buffer
|
* Multi-planar buffers consist of one or more planes, e.g. an YCbCr buffer
|
||||||
* with two planes can have one plane for Y, and another for interleaved CbCr
|
* with two planes can have one plane for Y, and another for interleaved CbCr
|
||||||
|
@ -1019,10 +1021,14 @@ struct v4l2_plane {
|
||||||
* a userspace file descriptor associated with this buffer
|
* a userspace file descriptor associated with this buffer
|
||||||
* @planes: for multiplanar buffers; userspace pointer to the array of plane
|
* @planes: for multiplanar buffers; userspace pointer to the array of plane
|
||||||
* info structs for this buffer
|
* info structs for this buffer
|
||||||
|
* @m: union of @offset, @userptr, @planes and @fd
|
||||||
* @length: size in bytes of the buffer (NOT its payload) for single-plane
|
* @length: size in bytes of the buffer (NOT its payload) for single-plane
|
||||||
* buffers (when type != *_MPLANE); number of elements in the
|
* buffers (when type != *_MPLANE); number of elements in the
|
||||||
* planes array for multi-plane buffers
|
* planes array for multi-plane buffers
|
||||||
|
* @reserved2: drivers and applications must zero this field
|
||||||
* @request_fd: fd of the request that this buffer should use
|
* @request_fd: fd of the request that this buffer should use
|
||||||
|
* @reserved: for backwards compatibility with applications that do not know
|
||||||
|
* about @request_fd
|
||||||
*
|
*
|
||||||
* Contains data exchanged by application and driver using one of the Streaming
|
* Contains data exchanged by application and driver using one of the Streaming
|
||||||
* I/O methods.
|
* I/O methods.
|
||||||
|
@ -1060,7 +1066,7 @@ struct v4l2_buffer {
|
||||||
#ifndef __KERNEL__
|
#ifndef __KERNEL__
|
||||||
/**
|
/**
|
||||||
* v4l2_timeval_to_ns - Convert timeval to nanoseconds
|
* v4l2_timeval_to_ns - Convert timeval to nanoseconds
|
||||||
* @ts: pointer to the timeval variable to be converted
|
* @tv: pointer to the timeval variable to be converted
|
||||||
*
|
*
|
||||||
* Returns the scalar nanosecond representation of the timeval
|
* Returns the scalar nanosecond representation of the timeval
|
||||||
* parameter.
|
* parameter.
|
||||||
|
@ -1121,6 +1127,7 @@ static inline __u64 v4l2_timeval_to_ns(const struct timeval *tv)
|
||||||
* @flags: flags for newly created file, currently only O_CLOEXEC is
|
* @flags: flags for newly created file, currently only O_CLOEXEC is
|
||||||
* supported, refer to manual of open syscall for more details
|
* supported, refer to manual of open syscall for more details
|
||||||
* @fd: file descriptor associated with DMABUF (set by driver)
|
* @fd: file descriptor associated with DMABUF (set by driver)
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*
|
*
|
||||||
* Contains data used for exporting a video buffer as DMABUF file descriptor.
|
* Contains data used for exporting a video buffer as DMABUF file descriptor.
|
||||||
* The buffer is identified by a 'cookie' returned by VIDIOC_QUERYBUF
|
* The buffer is identified by a 'cookie' returned by VIDIOC_QUERYBUF
|
||||||
|
@ -2233,6 +2240,7 @@ struct v4l2_mpeg_vbi_fmt_ivtv {
|
||||||
* this plane will be used
|
* this plane will be used
|
||||||
* @bytesperline: distance in bytes between the leftmost pixels in two
|
* @bytesperline: distance in bytes between the leftmost pixels in two
|
||||||
* adjacent lines
|
* adjacent lines
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*/
|
*/
|
||||||
struct v4l2_plane_pix_format {
|
struct v4l2_plane_pix_format {
|
||||||
__u32 sizeimage;
|
__u32 sizeimage;
|
||||||
|
@ -2251,8 +2259,10 @@ struct v4l2_plane_pix_format {
|
||||||
* @num_planes: number of planes for this format
|
* @num_planes: number of planes for this format
|
||||||
* @flags: format flags (V4L2_PIX_FMT_FLAG_*)
|
* @flags: format flags (V4L2_PIX_FMT_FLAG_*)
|
||||||
* @ycbcr_enc: enum v4l2_ycbcr_encoding, Y'CbCr encoding
|
* @ycbcr_enc: enum v4l2_ycbcr_encoding, Y'CbCr encoding
|
||||||
|
* @hsv_enc: enum v4l2_hsv_encoding, HSV encoding
|
||||||
* @quantization: enum v4l2_quantization, colorspace quantization
|
* @quantization: enum v4l2_quantization, colorspace quantization
|
||||||
* @xfer_func: enum v4l2_xfer_func, colorspace transfer function
|
* @xfer_func: enum v4l2_xfer_func, colorspace transfer function
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*/
|
*/
|
||||||
struct v4l2_pix_format_mplane {
|
struct v4l2_pix_format_mplane {
|
||||||
__u32 width;
|
__u32 width;
|
||||||
|
@ -2277,6 +2287,7 @@ struct v4l2_pix_format_mplane {
|
||||||
* struct v4l2_sdr_format - SDR format definition
|
* struct v4l2_sdr_format - SDR format definition
|
||||||
* @pixelformat: little endian four character code (fourcc)
|
* @pixelformat: little endian four character code (fourcc)
|
||||||
* @buffersize: maximum size in bytes required for data
|
* @buffersize: maximum size in bytes required for data
|
||||||
|
* @reserved: drivers and applications must zero this array
|
||||||
*/
|
*/
|
||||||
struct v4l2_sdr_format {
|
struct v4l2_sdr_format {
|
||||||
__u32 pixelformat;
|
__u32 pixelformat;
|
||||||
|
@ -2303,6 +2314,8 @@ struct v4l2_meta_format {
|
||||||
* @vbi: raw VBI capture or output parameters
|
* @vbi: raw VBI capture or output parameters
|
||||||
* @sliced: sliced VBI capture or output parameters
|
* @sliced: sliced VBI capture or output parameters
|
||||||
* @raw_data: placeholder for future extensions and custom formats
|
* @raw_data: placeholder for future extensions and custom formats
|
||||||
|
* @fmt: union of @pix, @pix_mp, @win, @vbi, @sliced, @sdr, @meta
|
||||||
|
* and @raw_data
|
||||||
*/
|
*/
|
||||||
struct v4l2_format {
|
struct v4l2_format {
|
||||||
__u32 type;
|
__u32 type;
|
||||||
|
|
Loading…
Add table
Reference in a new issue