Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp406887lqc; Fri, 8 Mar 2024 00:34:39 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWfQCybKo1J8+BGITP5c+K3K0LqSEvNoEN0xIfZc3ZmowGo9TX10oG40P4M2FEQcDIi73lj4h/LuofbMjFWgEn4q4hANzI2jFfGjBqNDA== X-Google-Smtp-Source: AGHT+IHEsAwT4uHGUb4s5yhqUIfb2CtKlDJ+oiR9JvZByfTz0UVPJDy3Qi790fUAhYs1baBvpS59 X-Received: by 2002:a05:6122:da7:b0:4ca:615e:1b61 with SMTP id bc39-20020a0561220da700b004ca615e1b61mr11138061vkb.10.1709886879062; Fri, 08 Mar 2024 00:34:39 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709886879; cv=pass; d=google.com; s=arc-20160816; b=tv9VM4kZsaOe79qdI1XMj4n68X1cTtrleM19ji+f8Jz1yOmBwzQcf/4u2ycFevvyZf m6XF5w9A6UAQ9krbUshoMO4iWRn48j0x8V59q7SSZywMy5H0Q85FqXIkX20JJmawvRXv R8GVDsMVq6I6Oh9PQA1wC4XU9V2zLhTxdxmA+6dm7dnXNL9FxQYzUsLH7JcKRPGyFveB vf+LkwC4An6oKH6kE8IcaPs9fyNavNSN5oDe5B5BURemOPHmJ/6sglT3Nnwqlmb77E5/ cbuvdfeYXT6l7y8AF1IG3OQKHYAfg9sCc8IPK/Ew9afERILWCO0JQXHnxxDpPAsqVscQ a2iw== 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=XEu7iEqVQdQUM0UdIK01LG0+94g7A9IkS7O1pv1f9jU=; fh=oMnFP44GZn5KSs5vtdAIvSX6p76oFoh48gPvpU1naKQ=; b=QXo1WWh3s9wCs4XZyXSra9SLyMgzZSutYJmiMw19w+eHr2qp1/vcxdwn4fdMi0xOVF TR61BCV691S6aeQQjbXl46zsDunwmquRlooX35HY9k1cuIbCB/F4wNcPBdy3wtycYR5B n/tbOJGF89v1lpdEr9FS2ehNZzCQmDEhUCzCb2xpsx/XaDUKsLifwK2SG7B312v/VgSv TGJqoKozfZHnBml1+byowpFqSkKvM9ysdWFa621CJtkcr4xaBjirWM6VVDWZrbp1XtqF gNZ3eDCW5q1T4fvdj07RC38Y3NieB2gaFaCx03G+6IL3otkNdbjtDpsMRKrdRJCIjkW3 Mo6w==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=JqC4+l0J; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-96658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96658-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 a2-20020a05622a02c200b0042ef5ff938bsi10019507qtx.616.2024.03.08.00.34.38 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 00:34:39 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96658-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=JqC4+l0J; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-96658-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96658-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 BCFB41C2236B for ; Fri, 8 Mar 2024 08:34:38 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 3D19D5338F; Fri, 8 Mar 2024 08:33:39 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="JqC4+l0J" 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 DF5A552F94; Fri, 8 Mar 2024 08:33:36 +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=1709886818; cv=none; b=hPNteO+442A6OEp5mNfiUSMK20DLjRalC7WKVBr3k9V+5sFUFI0EQs62cIJRvCvxygKw5zUxUxQ63EgdO7YvDS05XmOEDVBAr+HYy1BvmN/h+QVUy5k9wZU/t6Gha28D5zCFEhHRTsMa/5gfpmoF7ngDG5ij/mGRwCJJLRS4Wuk= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709886818; c=relaxed/simple; bh=Ty7xiUSOfFEj7v0WrV6IQaaR5urMXJmbglW6AqDW5nM=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=FfyIPvo0A1zkLmX8mwudcbDep+eN2Eti7+IFc6i7mwRMqhAzVwZoOr338gmH6bf2KyT1vdRn7yzbS4qkV322Kw/i60wobOG6LzTewHcriYAACjzTAwa7rjEwfToQlBujIcN8L8yS5VuhcbBPHhac8zYxL5EaFF+3sVO1Vo1hhP0= 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=JqC4+l0J; 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.251.226.70]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id DFC23552; Fri, 8 Mar 2024 09:33:13 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1709886796; bh=Ty7xiUSOfFEj7v0WrV6IQaaR5urMXJmbglW6AqDW5nM=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=JqC4+l0J7rfCDPEjTgq4HWLsY4COQ7XSTd1w1pbqNUb3OHpxT5/3yA2vNas20faWF zjKNSrrsu0AsbXA5lr+YcsHrTtnopgVsbErpI54sO8tH62k8deOCP5bZOIuP8JHK95 80Lsdpwu581FLbyLY+84xN8C+swoZ+bC+8eVRYds= From: Umang Jain To: linux-media@vger.kernel.org Cc: Alexander Shiyan , Kieran Bingham , Sakari Ailus , open list , Dave Stevenson , Umang Jain Subject: [PATCH v2 4/6] media: imx335: Use integer values for size registers Date: Fri, 8 Mar 2024 14:03:10 +0530 Message-ID: <20240308083312.90279-5-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240308083312.90279-1-umang.jain@ideasonboard.com> References: <20240308083312.90279-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 --- 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 ec27035586f3..3c593538f727 100644 --- a/drivers/media/i2c/imx335.c +++ b/drivers/media/i2c/imx335.c @@ -250,12 +250,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