From patchwork Tue Jul 7 17:08:43 2020 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Dafna Hirschfeld X-Patchwork-Id: 11649389 Return-Path: Received: from mail.kernel.org (pdx-korg-mail-1.web.codeaurora.org [172.30.200.123]) by pdx-korg-patchwork-2.web.codeaurora.org (Postfix) with ESMTP id E61DF14E3 for ; Tue, 7 Jul 2020 17:09:03 +0000 (UTC) Received: from merlin.infradead.org (merlin.infradead.org [205.233.59.134]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPS id C0B9B20738 for ; Tue, 7 Jul 2020 17:09:03 +0000 (UTC) Authentication-Results: mail.kernel.org; dkim=pass (2048-bit key) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="eq8bDbKx" DMARC-Filter: OpenDMARC Filter v1.3.2 mail.kernel.org C0B9B20738 Authentication-Results: mail.kernel.org; dmarc=fail (p=none dis=none) header.from=collabora.com Authentication-Results: mail.kernel.org; spf=none smtp.mailfrom=linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=merlin.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=okZ6/ET2/uDBjAj5+p5IDAwQnjDk2ANaDKfIoDXlt0A=; b=eq8bDbKxAtye4qPvf37viqqQ4n kVgA2PzoAI5/RvxTWcTNLQoT2bi5fE+IniK+XgBna/6Gl2Ad417Wqb2ZnMRWllLZhGkPbzlhLhJPu G7D5wMIjFPh4HPV4UXf/ASgdRghwEex1OUH4hOQtrxMHNobRVGBNCk3hy/wuHYGnVDSvJwbPzzWL6 uoY7Ba3WH9h8xK5btwmtQ33ow6+pmvOvBbwQSUJEM6xUJ87ETg1R6yu255GmjF5ic4NNvEVnbcvxb 7mTUhgnlaTLdrR+gvXM8/uUSa/oh+JGMKkoaY7dF1vrbrB+LLz9npD8IuN96UI5SSJ2pZqDqby/CY yjkM4Z+w==; Received: from localhost ([::1] helo=merlin.infradead.org) by merlin.infradead.org with esmtp (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsr5W-0006mq-BH; Tue, 07 Jul 2020 17:08:58 +0000 Received: from bhuna.collabora.co.uk ([2a00:1098:0:82:1000:25:2eeb:e3e3]) by merlin.infradead.org with esmtps (Exim 4.92.3 #3 (Red Hat Linux)) id 1jsr5U-0006lc-I0 for linux-rockchip@lists.infradead.org; Tue, 07 Jul 2020 17:08:57 +0000 Received: from [127.0.0.1] (localhost [127.0.0.1]) (Authenticated sender: dafna) with ESMTPSA id 39A22260FA7 From: Dafna Hirschfeld To: linux-media@vger.kernel.org, laurent.pinchart@ideasonboard.com Subject: [PATCH 0/2] change fields of uapi struct rkisp1_cif_isp_ctk_config Date: Tue, 7 Jul 2020 19:08:43 +0200 Message-Id: <20200707170845.28845-1-dafna.hirschfeld@collabora.com> X-Mailer: git-send-email 2.17.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20200707_130856_690442_7D09FC94 X-CRM114-Status: UNSURE ( 4.41 ) X-CRM114-Notice: Please train this message. X-Spam-Score: -0.0 (/) X-Spam-Report: SpamAssassin version 3.4.4 on merlin.infradead.org summary: Content analysis details: (-0.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 SPF_PASS SPF: sender matches SPF record -0.0 SPF_HELO_PASS SPF: HELO matches SPF record 0.0 UNPARSEABLE_RELAY Informational: message has unparseable relay lines X-BeenThere: linux-rockchip@lists.infradead.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Upstream kernel work for Rockchip platforms List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: mchehab@kernel.org, dafna.hirschfeld@collabora.com, dafna3@gmail.com, tfiga@chromium.org, hverkuil@xs4all.nl, linux-rockchip@lists.infradead.org, helen.koike@collabora.com, sakari.ailus@linux.intel.com, kernel@collabora.com, ezequiel@collabora.com MIME-Version: 1.0 Sender: "Linux-rockchip" Errors-To: linux-rockchip-bounces+patchwork-linux-rockchip=patchwork.kernel.org@lists.infradead.org The struct rkisp1_cif_isp_ctk_config represents a 3x3 matrix and an offset vector for the color correction. It is nicer to represent those with a 3x3 array and a 3-array fields. - First patch repalces 9 fields 'coeff*' with one field coeff[3][3] - Second patch replaces 3 fields 'ct_offset_{rgb}' with one field 'ct_offset[3]' Dafna Hirschfeld (2): media: staging: rkisp1:: replace 9 coeff* fields with a 3x3 array media: staging: rkisp1: replace 3 fields 'ct_offset_*' with one array drivers/staging/media/rkisp1/rkisp1-params.c | 24 +++++++------------ .../staging/media/rkisp1/uapi/rkisp1-config.h | 20 +++++----------- 2 files changed, 15 insertions(+), 29 deletions(-)