From 8beb7e982fae2f7b37018e522d8b864691bbf4d3 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 28 Oct 2025 11:04:54 +0100 Subject: [PATCH] media: mediatek: amend vpu_get_plat_device() documentation 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 Reviewed-by: AngeloGioacchino Del Regno Signed-off-by: Nicolas Dufresne Signed-off-by: Hans Verkuil --- drivers/media/platform/mediatek/vpu/mtk_vpu.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/media/platform/mediatek/vpu/mtk_vpu.h b/drivers/media/platform/mediatek/vpu/mtk_vpu.h index da05f3e740810..3951547e9ec5b 100644 --- a/drivers/media/platform/mediatek/vpu/mtk_vpu.h +++ b/drivers/media/platform/mediatek/vpu/mtk_vpu.h @@ -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); -- 2.47.3