media: rockchip: rkisp1: Mask invalid bits in DPCC parameters
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Thu, 9 Jun 2022 10:31:13 +0000 (12:31 +0200)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Sat, 24 Sep 2022 05:54:04 +0000 (07:54 +0200)
commit9daa2b843f046de6d7113890838155f02c2e60a5
tree1a79d0f38cc0664afc0f35960b411c0deba3ad44
parent596fa6e71896e632832804a9648aa123af4afef9
media: rockchip: rkisp1: Mask invalid bits in DPCC parameters

Restrict the DPCC configuration that can be set by userspace to valid
register bits. To do so, reorganize the related register macros to
define valid bitmasks, as well as bits of the DPCC mode register.

Signed-off-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com>
Reviewed-by: Paul Elder <paul.elder@ideasonboard.com>
Reviewed-by: Dafna Hirschfeld <dafna@fastmail.com>
Signed-off-by: Mauro Carvalho Chehab <mchehab@kernel.org>
drivers/media/platform/rockchip/rkisp1/rkisp1-params.c
drivers/media/platform/rockchip/rkisp1/rkisp1-regs.h