media: rkisp1: resizer: Simplify register access
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sun, 27 Feb 2022 14:38:47 +0000 (14:38 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 07:33:33 +0000 (08:33 +0100)
commit3e74a42223862de7429e1882cc2f56227cf1a5d9
tree7887b20c118ee9c000f442aceb5ac9993e771a5a
parent0ef7dc305bd44d1c8330baa403d36c5df38b1215
media: rkisp1: resizer: Simplify register access

The registers for the mainpath and selfpath resizers are located at the
same offset from the instance-specific base. Use this to simplify
register access, removing the need to store per-register offsets in the
rkisp1_rsz_config structure.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Ricardo Ribalda <ribalda@chromium.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-common.h
drivers/media/platform/rockchip/rkisp1/rkisp1-regs.h
drivers/media/platform/rockchip/rkisp1/rkisp1-resizer.c