Commit 904aef0f authored by Hans Verkuil's avatar Hans Verkuil Committed by Mauro Carvalho Chehab

[media] v4l2-ctrl.h: fix comments

The comments for the unlocked v4l2_ctrl_s_ctrl* functions were wrong (copy
and pasted from the locked variants). Fix this, since it is confusing.
Acked-by: default avatarSakari Ailus <sakari.ailus@linux.intel.com>
Signed-off-by: default avatarHans Verkuil <hans.verkuil@cisco.com>
Signed-off-by: default avatarMauro Carvalho Chehab <mchehab@s-opensource.com>
parent 04bc9365
...@@ -759,9 +759,9 @@ s32 v4l2_ctrl_g_ctrl(struct v4l2_ctrl *ctrl); ...@@ -759,9 +759,9 @@ s32 v4l2_ctrl_g_ctrl(struct v4l2_ctrl *ctrl);
* @ctrl: The control. * @ctrl: The control.
* @val: The new value. * @val: The new value.
* *
* This set the control's new value safely by going through the control * This sets the control's new value safely by going through the control
* framework. This function will lock the control's handler, so it cannot be * framework. This function assumes the control's handler is already locked,
* used from within the &v4l2_ctrl_ops functions. * allowing it to be used from within the &v4l2_ctrl_ops functions.
* *
* This function is for integer type controls only. * This function is for integer type controls only.
*/ */
...@@ -771,7 +771,7 @@ int __v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val); ...@@ -771,7 +771,7 @@ int __v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val);
* @ctrl: The control. * @ctrl: The control.
* @val: The new value. * @val: The new value.
* *
* This set the control's new value safely by going through the control * This sets the control's new value safely by going through the control
* framework. This function will lock the control's handler, so it cannot be * framework. This function will lock the control's handler, so it cannot be
* used from within the &v4l2_ctrl_ops functions. * used from within the &v4l2_ctrl_ops functions.
* *
...@@ -807,9 +807,9 @@ s64 v4l2_ctrl_g_ctrl_int64(struct v4l2_ctrl *ctrl); ...@@ -807,9 +807,9 @@ s64 v4l2_ctrl_g_ctrl_int64(struct v4l2_ctrl *ctrl);
* @ctrl: The control. * @ctrl: The control.
* @val: The new value. * @val: The new value.
* *
* This set the control's new value safely by going through the control * This sets the control's new value safely by going through the control
* framework. This function will lock the control's handler, so it cannot be * framework. This function assumes the control's handler is already locked,
* used from within the &v4l2_ctrl_ops functions. * allowing it to be used from within the &v4l2_ctrl_ops functions.
* *
* This function is for 64-bit integer type controls only. * This function is for 64-bit integer type controls only.
*/ */
...@@ -821,7 +821,7 @@ int __v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val); ...@@ -821,7 +821,7 @@ int __v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val);
* @ctrl: The control. * @ctrl: The control.
* @val: The new value. * @val: The new value.
* *
* This set the control's new value safely by going through the control * This sets the control's new value safely by going through the control
* framework. This function will lock the control's handler, so it cannot be * framework. This function will lock the control's handler, so it cannot be
* used from within the &v4l2_ctrl_ops functions. * used from within the &v4l2_ctrl_ops functions.
* *
...@@ -843,9 +843,9 @@ static inline int v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val) ...@@ -843,9 +843,9 @@ static inline int v4l2_ctrl_s_ctrl_int64(struct v4l2_ctrl *ctrl, s64 val)
* @ctrl: The control. * @ctrl: The control.
* @s: The new string. * @s: The new string.
* *
* This set the control's new string safely by going through the control * This sets the control's new string safely by going through the control
* framework. This function will lock the control's handler, so it cannot be * framework. This function assumes the control's handler is already locked,
* used from within the &v4l2_ctrl_ops functions. * allowing it to be used from within the &v4l2_ctrl_ops functions.
* *
* This function is for string type controls only. * This function is for string type controls only.
*/ */
...@@ -857,7 +857,7 @@ int __v4l2_ctrl_s_ctrl_string(struct v4l2_ctrl *ctrl, const char *s); ...@@ -857,7 +857,7 @@ int __v4l2_ctrl_s_ctrl_string(struct v4l2_ctrl *ctrl, const char *s);
* @ctrl: The control. * @ctrl: The control.
* @s: The new string. * @s: The new string.
* *
* This set the control's new string safely by going through the control * This sets the control's new string safely by going through the control
* framework. This function will lock the control's handler, so it cannot be * framework. This function will lock the control's handler, so it cannot be
* used from within the &v4l2_ctrl_ops functions. * used from within the &v4l2_ctrl_ops functions.
* *
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment