Received: by 2002:ab2:6857:0:b0:1ef:ffd0:ce49 with SMTP id l23csp375112lqp; Thu, 21 Mar 2024 04:14:24 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCUGN5etnk1MHAcAvHjcOWMy1hR209qF7GaGyp2HxHvkyaYr/1U7be+HT9hh+30GcaCvdK6zuCTDQ8TDO0w7kq/Ha60xPnA1pEw+eBn8hw== X-Google-Smtp-Source: AGHT+IHa614TAzu7JCAdymj/kWbVDLstB/nYGXiN8SmRk8p+7G/27OcomKkYKQXC+O90KZZoBUU7 X-Received: by 2002:a17:902:7c89:b0:1dd:651d:cc47 with SMTP id y9-20020a1709027c8900b001dd651dcc47mr1444103pll.28.1711019663812; Thu, 21 Mar 2024 04:14:23 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1711019663; cv=pass; d=google.com; s=arc-20160816; b=TpBgL8yhTDLh2yGMaSVW+8d04qiWgIv6558BiOvCaVkYWPh8BrsEQprTxD33WmHQtH U1DZaR2AtLuY/dySwvmgQYyPp+ar9WTexZ32UVuTCRRz60fWHNt5QC6lQQKtw0olyrGA jrMEq9+5bzBOarZoy9Faw0wN3IqkXLVK7fOEPI+9aV8KvThUSbpO4LNlfR02zAXsKKkl pZIPupSTbbuOmMxRRZTGnpqZs5lH0zVp5xWdw1TCjn0PnQqnsgJ7hLA6TABEYlae1AeR BCpD/KMG2utwN0N72QohHeudJ4oas4aWZNuOTLQDqs99PYCe3spxvDQO4LbjH/Ejjyz6 cJbQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:in-reply-to:message-id :date:subject:cc:to:from:dkim-signature; bh=yFgu/MfAs+mmclbRrY0Z/hnOupWYgll2x5G7NYmQnwY=; fh=DWHwbS5Yyu2YPKgQVzoJ2mSisvAGFA+fe6r0qCfhors=; b=jwzbcIfoVTxR3nBm7rpHnRCYtoxV9moMboH3AA3aB7rR4BIC2sl0sS8WCG597z+Mfz vfIUMFkuruxUSVZak+y6LcxY+3W/PskE7QFt3nvX/fxEFGafmQJrcNwUmLJ2OrRfgDX3 gAKslmgk9TlFjFnNhYeQVc1+zoyVMBIS78sg1bPPHY5/nTTL2pdpJYryCuHc3g7KDQ/v JrTzxJZ6cSfIhLuu17cTeAm2Qv1k/rgAWvTWkXkpwUIL/9XVIFPLAQZ0wqzTrdunR5qV Vfr0XuiePuOO3QXCZNH9DRsFjxrLB7lUEkmtcf3jzzRPp+/fB2k91KpOMR+1UCkrDJ+r P6Kw==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=n674ajER; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-109929-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109929-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from sv.mirrors.kernel.org (sv.mirrors.kernel.org. [139.178.88.99]) by mx.google.com with ESMTPS id j1-20020a170902da8100b001e0058e88cbsi10052734plx.387.2024.03.21.04.14.23 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 21 Mar 2024 04:14:23 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-109929-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) client-ip=139.178.88.99; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=n674ajER; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-109929-linux.lists.archive=gmail.com@vger.kernel.org designates 139.178.88.99 as permitted sender) smtp.mailfrom="linux-kernel+bounces-109929-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by sv.mirrors.kernel.org (Postfix) with ESMTPS id 80414282003 for ; Thu, 21 Mar 2024 11:14:23 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id F3AE35FDD3; Thu, 21 Mar 2024 11:13:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="n674ajER" Received: from perceval.ideasonboard.com (perceval.ideasonboard.com [213.167.242.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id A5EA35FDAD; Thu, 21 Mar 2024 11:13:12 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=213.167.242.64 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711019594; cv=none; b=C89bAXrjEgbRKTrO/Jj+bw/J9UfXEU7Vo0a6g/thJorCs6Kd1L5fKdiq0gb/y10SCucii5I0B0e7GD/WxLxFZajPRhpUbJcOimPJ9YLFP9cR4x9Iz9UrRRjY1W9OPFX268fI3JyO59FU5wQ5z2iggzbd1CV1Z5+ISylmEh/Y5YM= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1711019594; c=relaxed/simple; bh=IRwMtyb4x/4E+/zf4v8H5ilEmr4iukiP6112eEdyElc=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=MvDQNELtA7WvA2V/QPO0hN8s1nS2WbOI4iqI/IQzqJdoXbw2jXObxIWSXArcm/67w/sYx9Iiqx3Ca0O1pIW5jLxk1FALOdAjSjzpJRrFSR806Pw+H2t8XM4cY6ND7opb3Jfg8vEn/EIrjQi6kfZmPwROZqz8woMg7xdpR3jIkfM= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com; spf=pass smtp.mailfrom=ideasonboard.com; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b=n674ajER; arc=none smtp.client-ip=213.167.242.64 Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=ideasonboard.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=ideasonboard.com Received: from umang.jain (unknown [103.86.18.138]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DB33A8CC; Thu, 21 Mar 2024 12:12:39 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1711019563; bh=IRwMtyb4x/4E+/zf4v8H5ilEmr4iukiP6112eEdyElc=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=n674ajERnF2D6okJpw3NP6Zi0DrhiY62DoXu2d8IhWuklRVaTOqBu1zCvldsl/YaH SFppBdjMpZMCFx5IE/1lpQIFoFR1veF3e6SG2mJnT3NYR+tyMg+U/7KNB3/Dd2ZLZK vjddEGSzLDc3myVoaghSH/4gHT2cO0wOvE3sZtlQ= From: Umang Jain To: linux-media@vger.kernel.org Cc: Alexander Shiyan , Sakari Ailus , Kieran Bingham , open list , Umang Jain , Tommaso Merciai Subject: [PATCH v3 4/6] media: imx335: Use integer values for size registers Date: Thu, 21 Mar 2024 16:42:37 +0530 Message-ID: <20240321111239.808735-5-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240321111239.808735-1-umang.jain@ideasonboard.com> References: <20240321111239.808735-1-umang.jain@ideasonboard.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Consider integer values for registers that are related to various sizes in the register map. This helps in improving the overall readability. No functional changes intended in this patch. Signed-off-by: Umang Jain Reviewed-by: Tommaso Merciai --- drivers/media/i2c/imx335.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/media/i2c/imx335.c b/drivers/media/i2c/imx335.c index ae4341644a84..7609dbc537b1 100644 --- a/drivers/media/i2c/imx335.c +++ b/drivers/media/i2c/imx335.c @@ -251,12 +251,12 @@ static const struct cci_reg_sequence mode_2592x1940_regs[] = { {IMX335_REG_MODE_SELECT, 0x01}, {IMX335_REG_MASTER_MODE, 0x00}, {IMX335_REG_WINMODE, 0x04}, - {IMX335_REG_HTRIMMING_START, 0x0180}, - {IMX335_REG_HNUM, 0x0a20}, - {IMX335_REG_Y_OUT_SIZE, 0x0794}, - {IMX335_REG_AREA3_ST_ADR_1, 0x00b0}, - {IMX335_REG_AREA3_WIDTH_1, 0x0f58}, - {IMX335_REG_OPB_SIZE_V, 0x00}, + {IMX335_REG_HTRIMMING_START, 384}, + {IMX335_REG_HNUM, 2592}, + {IMX335_REG_Y_OUT_SIZE, 1940}, + {IMX335_REG_AREA3_ST_ADR_1, 176}, + {IMX335_REG_AREA3_WIDTH_1, 3928}, + {IMX335_REG_OPB_SIZE_V, 0}, {IMX335_REG_XVS_XHS_DRV, 0x00}, {CCI_REG8(0x3288), 0x21}, /* undocumented */ {CCI_REG8(0x328a), 0x02}, /* undocumented */ -- 2.43.0