]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
media: renesas: vsp1: Split vsp1_du_setup_lif()
authorLaurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Mon, 11 May 2026 23:56:26 +0000 (02:56 +0300)
committerHans Verkuil <hverkuil+cisco@kernel.org>
Thu, 21 May 2026 07:10:15 +0000 (09:10 +0200)
commit79448d5386f62a3caaba7fe04204a587a8bfa5c4
tree9b9c5f724a146b7465a0576d478ee643d1c9d4b5
parentf0748d9decedd0ef749d21c6b281cf26958dfd55
media: renesas: vsp1: Split vsp1_du_setup_lif()

The vsp1_du_setup_lif() function is used to configure and enable a
pipeline, as well as disable it, depending on the cfg argument being a
valid pointer or NULL. This creates a confusing API. Improve it by
splitting the function in two, a vsp1_du_enable() function to configure
a pipeline, and a vsp1_du_disable() function to disaple it.

Keep vsp1_du_setup_lif() as an inline wrapper for existing callers in
the DRM subsystem, to simplify merging. The callers will be updated
separately and the old API will then be removed.

Reviewed-by: Niklas Söderlund <niklas.soderlund+renesas@ragnatech.se>
Link: https://patch.msgid.link/20260511235637.3468558-3-laurent.pinchart+renesas@ideasonboard.com
Signed-off-by: Laurent Pinchart <laurent.pinchart+renesas@ideasonboard.com>
Signed-off-by: Hans Verkuil <hverkuil+cisco@kernel.org>
drivers/media/platform/renesas/vsp1/vsp1_drm.c
include/media/vsp1.h