summaryrefslogtreecommitdiff
path: root/include/uapi/linux/rkisp1-config.h
diff options
context:
space:
mode:
authorHeiko Stuebner <heiko.stuebner@theobroma-systems.com>2021-01-21 17:44:05 +0300
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-28 13:30:39 +0300
commit66d81de7ea9d2b0775e5bfd5e770483a1c24b9ca (patch)
tree25a665f6e15c6c3f1cc51fea497a950e6f12405a /include/uapi/linux/rkisp1-config.h
parenta802a0430b863f03bc01aaea2d2bf6ff464f03e7 (diff)
downloadlinux-66d81de7ea9d2b0775e5bfd5e770483a1c24b9ca.tar.xz
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>
Diffstat (limited to 'include/uapi/linux/rkisp1-config.h')
-rw-r--r--include/uapi/linux/rkisp1-config.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/include/uapi/linux/rkisp1-config.h b/include/uapi/linux/rkisp1-config.h
index 24f05d6d258f..35aa82d5f6dd 100644
--- a/include/uapi/linux/rkisp1-config.h
+++ b/include/uapi/linux/rkisp1-config.h
@@ -102,8 +102,7 @@
/*
* Histogram calculation
*/
-/* Last 3 values unused. */
-#define RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE 28
+#define RKISP1_CIF_ISP_HISTOGRAM_WEIGHT_GRIDS_SIZE 25
/*
* Defect Pixel Cluster Correction