media: staging: rkisp1: replace two identical macros with one
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Thu, 25 Jun 2020 18:50:16 +0000 (20:50 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sat, 29 Aug 2020 06:31:08 +0000 (08:31 +0200)
commita699a4c117eadb39a9041a85240cd7464ffbe8b4
treec030501fe8c3529daf1275236f96be9210674d3c
parentf718f6c8b7fb0290e97419d4647fba5cde5dff33
media: staging: rkisp1: replace two identical macros with one

The two macros RKISP1_CIF_ISP_LSC_{GRAD/SIZE}_TBL_SIZE have
the same value which is the number of sectors in the grads
and size parameters. Therefore there is no need for two
different macros. Replace them with one macro
RKISP1_CIF_ISP_LSC_SECTORS_TBL_SIZE. Also use the macro
when iterating the arrays instead of hardcoded '4'.

Signed-off-by: Dafna Hirschfeld <dafna.hirschfeld@collabora.com>
Acked-by: Helen Koike <helen.koike@collabora.com>
Signed-off-by: Hans Verkuil <hverkuil-cisco@xs4all.nl>
Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
drivers/staging/media/rkisp1/rkisp1-params.c
drivers/staging/media/rkisp1/uapi/rkisp1-config.h