Received: by 2002:ab2:7041:0:b0:1f4:bcc8:f211 with SMTP id x1csp109215lql; Fri, 12 Apr 2024 05:30:07 -0700 (PDT) X-Forwarded-Encrypted: i=3; AJvYcCW/yzbTA+KW4OSh+dMv/wGTLXy4nBvQ446alwSMVvWKAn4SkhkwCCCLCdvFydMxZNyxz6j7DUExrxiD471I7c9CYWR5ayaTM6NCihl0NA== X-Google-Smtp-Source: AGHT+IE8gYlEHTT6YOpZnPtRNqDkg8IkyUNSc2oaAzi41MxZmtmZsvo2ZfPWWYbAPF0+ipgrdNA2 X-Received: by 2002:a17:906:f6d3:b0:a52:408f:8577 with SMTP id jo19-20020a170906f6d300b00a52408f8577mr96310ejb.9.1712925007317; Fri, 12 Apr 2024 05:30:07 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1712925007; cv=pass; d=google.com; s=arc-20160816; b=XS5jQanZIWOapGIdCoWj1LWXV4xDGNaEvLp8o2l6c83GDhTx7nsczTxwA6F1uWOVwm veajWI38l/aHSbm9LcXrvkZ5VZrIcNVSEWVL0o8yBxRtnukkv+lT6cxtTqyJokmgSsyJ +oa6WyH+DN11m11c1BFIYN5Kuk00WV366wpFxrKdCiGkzEgA/I2Ce9GTVqdz8xUXuCpY uO8iSWiCTf5zsXm9MmKNC5kWQBatpJ1l/nGJH/HAFyfFKKlEoZf+TquQvHfPtoASZ+Vn BSYnv64wW4su7qg1klRCaSAbqcGI5fgkAvmmgQTkcotYgLN9pqqtOlHdT+hFBY1oCvRt xTaw== 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=ijC07HHcCO3IRHfpdyz6MFzkLG1iyn5vOoZih31jhoc=; fh=PwuX4C2HmGU5MrGYDEjuOgzg+b3lY8lqiW7EvmPok7I=; b=kWCyM24BeSviCErNQgp7B2QcUFHoAGfeNOWD7tpK2vzcnlD/t1FlWS+WKKi0nDO+1j AMLYYyLB4Qdm+iCYXd9WxJRtJNvRnRl8mE+eMyah4JBdzu+GopfeHh31eQXZCsi38bKE RwvjK+ICtWkVMVfPo0ldFQmaYQ5kfz01W/N1ruLJk3CLfp5vsIPbk1fNzIwmCfU7LAeY orMqLNbf2qp9Sjv/XqjFU6SnFexCA9j6EDExKcGFduztg6Lvm0Bv/1GTegnkRd/1egA6 h+DiiJTLfrrwZyR/8OBfzPrkLwZ3jHI2lJfpmRczraNt1M67v+dw50prEe1iqx3rwQ0d hZRg==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=B4LbjRiS; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-142648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142648-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id m7-20020a170906234700b00a520eb29a92si1678781eja.438.2024.04.12.05.30.07 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 12 Apr 2024 05:30:07 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel+bounces-142648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) client-ip=2604:1380:4601:e00::3; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=B4LbjRiS; arc=pass (i=1 spf=pass spfdomain=ideasonboard.com dkim=pass dkdomain=ideasonboard.com); spf=pass (google.com: domain of linux-kernel+bounces-142648-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-142648-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 am.mirrors.kernel.org (Postfix) with ESMTPS id 0F3431F22BF7 for ; Fri, 12 Apr 2024 12:30:07 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 5616E58AB9; Fri, 12 Apr 2024 12:29:00 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (1024-bit key) header.d=ideasonboard.com header.i=@ideasonboard.com header.b="B4LbjRiS" 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 3047458208; Fri, 12 Apr 2024 12:28:57 +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=1712924939; cv=none; b=Bq1TZIsggk5jaPgXyz/zsDyRuGUd0BD/0DX7Y3wmyGly9Gom64XlqPcVLFXD8MxcRh5eygntRxeNB+kzvMWSVgGSOqakfk8BlOKwLeaggAk/SWpIWu2CRsQtAWHE4Xqe4O7ljw/dkevrD9HoHBKDXnAdXJwivj1F1mz53sWbt+I= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1712924939; c=relaxed/simple; bh=xUKhjYne1PQbG8vIO3b05INY/3cYr2+/BJz/lQT/pUI=; h=From:To:Cc:Subject:Date:Message-ID:In-Reply-To:References: MIME-Version; b=l+cGR3F1J9hJnrO9dvzEvC3bLrIhT6Y9y4Zq5mO9gk7gEJeJtmjAYfERPryKaAAurveHJRv9n+6O3/hJvTVOpDmJFxPve2Kdm5ubTqK5vy+w16mCPB04ka0MiaL+SU1DhqWysnY57fh5oHiI7/au5Vr9iYnwyilo9/0JT2idrg8= 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=B4LbjRiS; 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.65]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id D169C8E1; Fri, 12 Apr 2024 14:28:11 +0200 (CEST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1712924893; bh=xUKhjYne1PQbG8vIO3b05INY/3cYr2+/BJz/lQT/pUI=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=B4LbjRiS0VYvVKeQ1uZT45rB52wuFroq+0bfMVxwq8Kcau3NvytUICCsXfBGZ+WO1 Sc/w7dMbMCENgo0734btEV6b1NZaqb3os2u0qdyrkHjFKQOYheEBwFmmLjHjzFT5Z4 tyUnHttQ1M8cd/mWuNAMIPnrOq6JAeNTYC8zo80A= From: Umang Jain To: linux-media@vger.kernel.org Cc: Alexander Shiyan , Kieran Bingham , Sakari Ailus , open list , Umang Jain , Tommaso Merciai Subject: [PATCH v5 4/6] media: imx335: Use integer values for size registers Date: Fri, 12 Apr 2024 17:58:40 +0530 Message-ID: <20240412122842.193713-5-umang.jain@ideasonboard.com> X-Mailer: git-send-email 2.43.0 In-Reply-To: <20240412122842.193713-1-umang.jain@ideasonboard.com> References: <20240412122842.193713-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 29af5693eaf2..28ee7154d1f9 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 }, { CCI_REG8(0x328a), 0x02 }, -- 2.43.0