media: rockchip: rga: split src and dst buffer setup
authorMichael Tretter <m.tretter@pengutronix.de>
Fri, 13 Oct 2023 11:00:25 +0000 (13:00 +0200)
committerHans Verkuil <hverkuil-cisco@xs4all.nl>
Thu, 7 Dec 2023 07:56:13 +0000 (08:56 +0100)
commit558c248f930e6829bd7af160d4a9451a15dbee41
tree1d5bc230e6d2cf74b72c9f41fbdc3a5b6f009e71
parent6040702ade234c8212dcfdef85e2f5549aa2f0f5
media: rockchip: rga: split src and dst buffer setup

Split the register setup for the source and destination video buffers
into separate functions.

This is a cleanup to make the code more readable by separating the
offset calculation for the different buffers and prepares the driver for
using pre-calculated offsets of planes.

Signed-off-by: Michael Tretter <m.tretter@pengutronix.de>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
drivers/media/platform/rockchip/rga/rga-hw.c