From patchwork Mon Jan 18 11:04:46 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heiko Stuebner X-Patchwork-Id: 70907 X-Patchwork-Delegate: hverkuil@xs4all.nl Received: from vger.kernel.org ([23.128.96.18]) by www.linuxtv.org with esmtp (Exim 4.92) (envelope-from ) id 1l1SNE-002nnB-Rs; Mon, 18 Jan 2021 11:07:05 +0000 Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S2389568AbhARLGO (ORCPT + 1 other); Mon, 18 Jan 2021 06:06:14 -0500 Received: from gloria.sntech.de ([185.11.138.130]:46738 "EHLO gloria.sntech.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S2389237AbhARLFe (ORCPT ); Mon, 18 Jan 2021 06:05:34 -0500 Received: from ip5f5aa64a.dynamic.kabel-deutschland.de ([95.90.166.74] helo=phil.lan) by gloria.sntech.de with esmtpsa (TLS1.3:ECDHE_RSA_AES_256_GCM_SHA384:256) (Exim 4.92) (envelope-from ) id 1l1SL4-0003HM-W9; Mon, 18 Jan 2021 12:04:51 +0100 From: Heiko Stuebner To: dafna.hirschfeld@collabora.com, helen.koike@collabora.com, linux-media@vger.kernel.org, mchehab@kernel.org, Laurent.pinchart@ideasonboard.com, hverkuil@xs4all.nl Cc: linux-rockchip@lists.infradead.org, ezequiel@collabora.com, christoph.muellner@theobroma-systems.com, heiko@sntech.de, tfiga@chromium.org, Heiko Stuebner Subject: [PATCH v6 2/4] media: rockchip: rkisp1: reduce number of histogram grid elements in uapi Date: Mon, 18 Jan 2021 12:04:46 +0100 Message-Id: <20210118110448.275389-3-heiko@sntech.de> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20210118110448.275389-1-heiko@sntech.de> References: <20210118110448.275389-1-heiko@sntech.de> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-media@vger.kernel.org X-LSpam-Score: -2.4 (--) X-LSpam-Report: No, score=-2.4 required=5.0 tests=BAYES_00=-1.9,HEADER_FROM_DIFFERENT_DOMAINS=0.5,MAILING_LIST_MULTI=-1 autolearn=ham autolearn_force=no From: Heiko Stuebner 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. Signed-off-by: Heiko Stuebner Acked-by: Helen Koike --- include/uapi/linux/rkisp1-config.h | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/include/uapi/linux/rkisp1-config.h b/include/uapi/linux/rkisp1-config.h index ba443771cc0b..ecfb8f7a6c70 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