media: rkisp1: regs: Don't use BIT() macro for multi-bit register fields
authorLaurent Pinchart <laurent.pinchart@ideasonboard.com>
Sat, 26 Feb 2022 18:09:58 +0000 (18:09 +0000)
committerMauro Carvalho Chehab <mchehab@kernel.org>
Mon, 27 Jun 2022 07:04:08 +0000 (08:04 +0100)
commit240e92eaee8ce314d075679f513da03d84aa8974
treecdfb3bf109bb9986622df582a6bf37bf25547ef1
parent6ff02276beb93e305a463fb950f3501a60a887f8
media: rkisp1: regs: Don't use BIT() macro for multi-bit register fields

The BIT() macro is meant to represent a single bit. It is incorrectly
used for register field values that store the value 1 in a multi-bit
field. Use the usual (1 << n) construct for those.

While at it, move RKISP1_CIF_MI_DMA_CTRL_READ_FMT_PACKED where it
belongs with the other READ_FMT values.

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-regs.h