Received: by 2002:ab2:1149:0:b0:1f3:1f8c:d0c6 with SMTP id z9csp2094938lqz; Tue, 2 Apr 2024 07:11:03 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCVW3ec1gj/I5BRYU8Zzu2SH5WuKw2JPlybzMHfq8pJGlGBxACfZsorarpeU32gbX+vFCT6ZjduoZat/9/jIq2kAJ7lZbvqH4RYb1FS7LA== X-Google-Smtp-Source: AGHT+IHUOOZQc5q3F8YyBpA9I7ZJ9URMZig+Sv9z5k09GWODuy/0iGL48ei8y2oDcZbh+5mw6FDI X-Received: by 2002:a05:6870:7f06:b0:221:21ca:1523 with SMTP id xa6-20020a0568707f0600b0022121ca1523mr13247514oab.17.1712067063452; Tue, 02 Apr 2024 07:11:03 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712067063; cv=pass; d=google.com; s=arc-20160816; b=B7iZxQeQEiK11/hUzyKAZ59sYTcLrWFg8CNVZTfbISr9e0DEQBTEPyZy2iq+7ZOR6y oiRVeVb6TI0woMNZJc1017vw1CuwWMhYgsyz+Fc/NQokycCYmJiSXhJeTtAUhrZPahJs 8v5sSUISHXrzFGRDR9ZIsbywQEKC+isRofZijcxpqVCmU/fh/dxlIggs9TIt7/1BcffC lzPc+jcLYseyVqBRs0Nz45TL91FFac0wVBXZ/06yFYnGPCLknHU4r+N+DeC11PXgQRgo 3/Az173ATvL5PGOBzBxpyapkBAtGuWl0XKvaIMws7Z4WPvK8ITVVFvpYUmi2jM7CtcKk 0+1g== 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=P+GFFq1EQ2ktHrM3R0F5Njz+SNMmIlLavgsTqb16klA=; fh=Wh0rRhYpIr3YqWADih4BR7TgH8kLEKTNQFyDnd/qf4E=; b=a7rLY4+Q/Yz3Fn7Dk0mxBelv03abMFOZ0bXbghOl7OsB9HRh/mjzjV+YXfYNIEuiCq 7sO8mh4Kprh82m/tvwJZ/kWDPcIA/z61P5QayaqKBEjZGvtHk6Ii/PqBTg4r50VUzWNa GI/p+snQhFuC7UM3iKi11EcJIH2pEUlpbQEmASGaKY3WJmP8zPkE1OKTuLOeKN3NJ4GZ oxJSKbw1TvLziOKBW/nut9KFSjWLHg8fh7Xq7EjLnmYsxFTU7pvQz5CG4aWaQr1O4Ckx XW4XkHHbuk6ifrib9ztH5xodCxsZSEQyxPrsp+H5g1hy7pKPItSbHXSbtSdtI0A/Udav 0sTQ==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=QJI3rfHG; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-128113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128113-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id b19-20020a67fe93000000b00478495ef34asi1286363vsr.160.2024.04.02.07.11.03 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 02 Apr 2024 07:11:03 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-128113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=QJI3rfHG; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-128113-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-128113-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 ny.mirrors.kernel.org (Postfix) with ESMTPS id 291181C22378 for ; Tue, 2 Apr 2024 14:11:03 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 966C3130496; Tue, 2 Apr 2024 14:09:49 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="QJI3rfHG" 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 0F9DD12CD90; Tue, 2 Apr 2024 14:09:47 +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=1712066988; cv=none; b=XQR8/lKPXq4ICICjbs3Lu//7BWrb4kr1grQnmzSH8DM4EiFW8/SW4qcwz14Q5JGuqldlTyiQNozvHqE/FCMSFlVuu9uXnd5wHFSekModTXaggPTJNpHlhYMtyJxS0zd4pu1x9D2C1qU/6uRKlMtptoJnKiThUwfatyhdygOjFao= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712066988; c=relaxed/simple; bh=eQ5uEA5OcnszbHkXkUUDNe07QiOYUc/9WnRknYUTkNM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=Pq9QVH46h6vbosMFezYGODjX2bW2l1tznj4TfqI/v4H4VfNumagh/jzs7bfqahFXaOp7X12nErNh/ikCJro68jqHdv9j1Be8imYwOhkcsHlyOhpJYjVP9+MaBvc8eOtaHBlV4dYXPBV0/eDDaYtoMVWvGEgZ+w3EaevdLSbRr8Q= 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=QJI3rfHG; 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.232]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id F343D8E1; Tue, 2 Apr 2024 16:09:06 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1712066949; bh=eQ5uEA5OcnszbHkXkUUDNe07QiOYUc/9WnRknYUTkNM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=QJI3rfHGvHGeemAAbLW23z18aR3DhkIEU+Idzve7IRo6d9Y/iSvjZKZw0hr2c6dce YZWdqC7G3Qdsi5MSamKM+ln+VL0zxU+AHps5O3gtn+r9O6UTPSbwGM45HRyJOi0gZp 5A/gQ9XqxY47+HeTEGwc+iw6kXoox6CYE6w7H7cQ= From: Umang Jain To: linux-media@vger.kernel.org Cc: Alexander Shiyan , Kieran Bingham , Sakari Ailus , open list , Dave Stevenson , Umang Jain , Tommaso Merciai Subject: [PATCH v4 4/6] media: imx335: Use integer values for size registers Date: Tue, 2 Apr 2024 19:39:22 +0530 Message-ID: <20240402140924.10009-5-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240402140924.10009-1-umang.jain@ideasonboard.com> References: <20240402140924.10009-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 Reviewed-by: Kieran Bingham --- 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