]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
media: mediatek: amend vpu_get_plat_device() documentation
authorJohan Hovold <johan@kernel.org>
Tue, 28 Oct 2025 10:04:54 +0000 (11:04 +0100)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Mon, 5 Jan 2026 14:56:31 +0000 (15:56 +0100)
Add a comment to the vpu_get_plat_device() documentation to make it
clear that the VPU platform device is returned with an incremented
reference count (which needs to be dropped after use).

Signed-off-by: Johan Hovold <johan@kernel.org>
Reviewed-by: AngeloGioacchino Del Regno <angelogioacchino.delregno@collabora.com>
Signed-off-by: Nicolas Dufresne <nicolas.dufresne@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/mediatek/vpu/mtk_vpu.h

index da05f3e74081084dd965284ecfe7e38af2fef99c..3951547e9ec5be88d6a672f326482ea1ba8879c5 100644 (file)
@@ -119,8 +119,7 @@ int vpu_ipi_send(struct platform_device *pdev,
  * @pdev:      the platform device of the module requesting VPU platform
  *             device for using VPU API.
  *
- * Return: Return NULL if it is failed.
- * otherwise it is VPU's platform device
+ * Return: a reference to the VPU's platform device, or NULL on failure.
  **/
 struct platform_device *vpu_get_plat_device(struct platform_device *pdev);