From: Hans Verkuil <hverkuil+cisco@kernel.org>
To: Sakari Ailus <sakari.ailus@linux.intel.com>, linux-media@vger.kernel.org
Subject: Re: [PATCH 1/1] media: v4l2-ctrl: Improve v4l2_ctrl_g_ctrl{,int64} documentation
Date: Tue, 1 Dec 2026 14:25:57 +0100 [thread overview]
Message-ID: <c9aab952-6763-405e-95fc-167dc5c0a8a0@kernel.org> (raw)
In-Reply-To: <20261201101906.3255-1-sakari.ailus@linux.intel.com>
On 01/12/2026 11:19, Sakari Ailus wrote:
> Improve documentation of v4l2_ctrl_g_ctrl() and v4l2_ctrl_g_ctrl_int64()
> by documenting what the function returns on error (i.e. 0).
>
> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com>
Reviewed-by: Hans Verkuil <hverkuil+cisco@kernel.org>
Regards,
Hans
> ---
> include/media/v4l2-ctrls.h | 4 ++++
> 1 file changed, 4 insertions(+)
>
> diff --git a/include/media/v4l2-ctrls.h b/include/media/v4l2-ctrls.h
> index cec9217d97ac..ac94bca52a3d 100644
> --- a/include/media/v4l2-ctrls.h
> +++ b/include/media/v4l2-ctrls.h
> @@ -1111,6 +1111,8 @@ const s64 *v4l2_ctrl_get_int_menu(u32 id, u32 *len);
> * used from within the &v4l2_ctrl_ops functions.
> *
> * This function is for integer type controls only.
> + *
> + * Returns: the value of the control or 0 on error.
> */
> s32 v4l2_ctrl_g_ctrl(struct v4l2_ctrl *ctrl);
>
> @@ -1162,6 +1164,8 @@ static inline int v4l2_ctrl_s_ctrl(struct v4l2_ctrl *ctrl, s32 val)
> * used from within the &v4l2_ctrl_ops functions.
> *
> * This function is for 64-bit integer type controls only.
> + *
> + * Returns: the value of the control or 0 on error.
> */
> s64 v4l2_ctrl_g_ctrl_int64(struct v4l2_ctrl *ctrl);
>
prev parent reply other threads:[~2026-12-01 13:25 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-01 10:19 [PATCH 1/1] media: v4l2-ctrl: Improve v4l2_ctrl_g_ctrl{,int64} documentation Sakari Ailus
2026-12-01 13:25 ` Hans Verkuil [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=c9aab952-6763-405e-95fc-167dc5c0a8a0@kernel.org \
--to=hverkuil+cisco@kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=sakari.ailus@linux.intel.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox