From: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
To: Sebastian Fricke <sebastian.fricke@collabora.com>,
Tiffany Lin <tiffany.lin@mediatek.com>,
Andrew-CT Chen <andrew-ct.chen@mediatek.com>,
Yunfei Dong <yunfei.dong@mediatek.com>,
Mauro Carvalho Chehab <mchehab@kernel.org>,
Matthias Brugger <matthias.bgg@gmail.com>
Cc: linux-media@vger.kernel.org, linux-kernel@vger.kernel.org,
linux-arm-kernel@lists.infradead.org,
linux-mediatek@lists.infradead.org, kernel@collabora.com
Subject: Re: [PATCH 3/3] media: mediatek: vcodec: Replace false function description
Date: Mon, 11 Mar 2024 11:35:17 +0100 [thread overview]
Message-ID: <15267045-045d-484a-b645-3c485a89bf12@collabora.com> (raw)
In-Reply-To: <20240309-mediatek-typos-v1-3-fa4aeb59306c@collabora.com>
Il 09/03/24 16:08, Sebastian Fricke ha scritto:
> The function descriptions where falsely copy pasted from another entry,
> write more fitting descriptions for the functions.
>
> Signed-off-by: Sebastian Fricke <sebastian.fricke@collabora.com>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
> ---
> .../platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h | 6 ++++--
> 1 file changed, 4 insertions(+), 2 deletions(-)
>
> diff --git a/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h b/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h
> index 6f624c266246..2d845b1307b6 100644
> --- a/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h
> +++ b/drivers/media/platform/mediatek/vcodec/decoder/vdec/vdec_h264_req_common.h
> @@ -185,7 +185,7 @@ void mtk_vdec_h264_get_ref_list(u8 *ref_list,
> void *mtk_vdec_h264_get_ctrl_ptr(struct mtk_vcodec_dec_ctx *ctx, int id);
>
> /**
> - * mtk_vdec_h264_fill_dpb_info - get each CID contrl address.
> + * mtk_vdec_h264_fill_dpb_info - Fill the decoded picture buffer info
> *
> * @ctx: v4l2 ctx
> * @decode_params: slice decode params
> @@ -225,7 +225,9 @@ void mtk_vdec_h264_copy_slice_hd_params(struct mtk_h264_slice_hd_param *dst_para
> const struct v4l2_ctrl_h264_decode_params *dec_param);
>
> /**
> - * mtk_vdec_h264_copy_scaling_matrix - get each CID contrl address.
> + * mtk_vdec_h264_copy_scaling_matrix - Copy the scaling matrix from a source to
> + * a destination.
> + * (for example into the slice parameters)
That should be a short description; the "for example into the slice parameters"
along with a longer description go in the long description part of the doc.
/*
* mtk_vdec_h264_copy_scaling_matrix - Copy scaling matrix from HW to driver
* @dst_matrix: .....
* @src_matrix: ....
*
* This function copies the scaling matrix from the hardware decoder (format?
* structs? registers? what?) to the driver's scaling matrix structure, because
* this that and the other tell me why we would ever need to do this, as this
* is a long description of what this function does.
* If a long description is not needed, just avoid it, of course.
*
* Return: some value for something, some other for something else
*
* This return value, as described, is so useful! :-)
*/
Cheers,
Angelo
prev parent reply other threads:[~2024-03-11 10:35 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2024-03-09 15:08 [PATCH 0/3] Mediatek VCODEC documentation improvements Sebastian Fricke
2024-03-09 15:08 ` [PATCH 1/3] media: mediatek: vcodec: Fix multiple typos Sebastian Fricke
2024-03-11 10:27 ` AngeloGioacchino Del Regno
2024-03-09 15:08 ` [PATCH 2/3] media: mediatek: vcodec: Improve wording & fix grammatic issues Sebastian Fricke
2024-03-11 10:27 ` AngeloGioacchino Del Regno
2024-03-09 15:08 ` [PATCH 3/3] media: mediatek: vcodec: Replace false function description Sebastian Fricke
2024-03-11 10:35 ` AngeloGioacchino Del Regno [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=15267045-045d-484a-b645-3c485a89bf12@collabora.com \
--to=angelogioacchino.delregno@collabora.com \
--cc=andrew-ct.chen@mediatek.com \
--cc=kernel@collabora.com \
--cc=linux-arm-kernel@lists.infradead.org \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-media@vger.kernel.org \
--cc=linux-mediatek@lists.infradead.org \
--cc=matthias.bgg@gmail.com \
--cc=mchehab@kernel.org \
--cc=sebastian.fricke@collabora.com \
--cc=tiffany.lin@mediatek.com \
--cc=yunfei.dong@mediatek.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
all inboxes | Powered by JetHome®