Skip to content

Commit

Permalink
media: v4l2-ctrls.h: better document the arguments for v4l2_ctrl_fill
Browse files Browse the repository at this point in the history
The arguments for this function are pointers. Make it clear at
its documentation.

Signed-off-by: Hans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@s-opensource.com>
  • Loading branch information
Mauro Carvalho Chehab committed Aug 20, 2017
1 parent 5422079 commit 67c672e
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions include/media/v4l2-ctrls.h
Original file line number Diff line number Diff line change
Expand Up @@ -340,17 +340,17 @@ struct v4l2_ctrl_config {
* v4l2_ctrl_fill - Fill in the control fields based on the control ID.
*
* @id: ID of the control
* @name: name of the control
* @type: type of the control
* @min: minimum value for the control
* @max: maximum value for the control
* @step: control step
* @def: default value for the control
* @flags: flags to be used on the control
* @name: pointer to be filled with a string with the name of the control
* @type: pointer for storing the type of the control
* @min: pointer for storing the minimum value for the control
* @max: pointer for storing the maximum value for the control
* @step: pointer for storing the control step
* @def: pointer for storing the default value for the control
* @flags: pointer for storing the flags to be used on the control
*
* This works for all standard V4L2 controls.
* For non-standard controls it will only fill in the given arguments
* and @name will be %NULL.
* and @name content will be set to %NULL.
*
* This function will overwrite the contents of @name, @type and @flags.
* The contents of @min, @max, @step and @def may be modified depending on
Expand Down

0 comments on commit 67c672e

Please sign in to comment.