media: rockchip: rkisp1: reduce number of histogram grid elements in uapi
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>
Thu, 21 Jan 2021 14:44:05 +0000 (15:44 +0100)
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>
Thu, 28 Jan 2021 10:30:39 +0000 (11:30 +0100)
commit66d81de7ea9d2b0775e5bfd5e770483a1c24b9ca
tree25a665f6e15c6c3f1cc51fea497a950e6f12405a
parenta802a0430b863f03bc01aaea2d2bf6ff464f03e7
media: rockchip: rkisp1: reduce number of histogram grid elements in uapi

The uapi right now specifies an array size of 28 but the actual number
of elements is only 25 with the last 3 being unused.

Reduce the array size to the correct number of elements and change
the params code to iterate the array 25 times.

Signed-off-by: Heiko Stuebner <heiko.stuebner@theobroma-systems.com>
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/media/platform/rockchip/rkisp1/rkisp1-params.c
include/uapi/linux/rkisp1-config.h