media: staging: rkisp1: set pads array of the resizer to size 2
authorDafna Hirschfeld <dafna.hirschfeld@collabora.com>
Mon, 29 Jun 2020 06:57:53 +0000 (08:57 +0200)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Sun, 19 Jul 2020 12:06:09 +0000 (14:06 +0200)
commit8d4a696af361af57bb84f3cc063473d241afc638
tree680b27533674eeee1025840093ca76e8b1e89e58
parent1b265b4d2c216ec3780125eebacb1035c7a5ed7a
media: staging: rkisp1: set pads array of the resizer to size 2

Currently the 'pads' and 'pad_cfg' arrays of the rkisp1_resizer
are of size 'RKISP1_ISP_PAD_MAX' which is 4. But the resizer
has only two pads. Change the size of the arrays to 2 by adding
and using 'RKISP1_RSZ_PAD_MAX' similar to the way it is done in
the isp entity.

[hverkuil: fix typos in commit log]

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-common.h
drivers/staging/media/rkisp1/rkisp1-resizer.c