Received: by 2002:ab2:3319:0:b0:1ef:7a0f:c32d with SMTP id i25csp473791lqc; Fri, 8 Mar 2024 03:08:31 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCWNskuwL/ks+X8yU9iSm+LtUm5dPpAcKxXhDlWjB49MU67p3KYhs4P4G24r6DvIjmC8XX0O7fbhdk6PtS33mJjrZxLglGc+LvS8Wh4KEA== X-Google-Smtp-Source: AGHT+IEbSGQF5QgJtXhav9ogWY+eSI64eZv6x9ArWoRIhOQ724q40UbN5xXWTOzswUuAH+RN12t+ X-Received: by 2002:a17:906:66c2:b0:a45:bcaa:979c with SMTP id k2-20020a17090666c200b00a45bcaa979cmr5128451ejp.75.1709896111220; Fri, 08 Mar 2024 03:08:31 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1709896111; cv=pass; d=google.com; s=arc-20160816; b=g53fVo5SBXeSiV6iqgmd1JvjOxf91qAmHTxv87a6yz3ygmSSqC3rhLAyBJdytCNJkf gn1/rdKjEuJup0bKMGfK3nDWUKtkaYTcyDxO21OE0xxcb4M5jKuzjRJqVIoyNfMvD+/A 1aX2rrFlS1qOZdHTBhaP41ujBv3VGYdOpsDsxeA4An8olDdXX9N5bnr6v9fwIiF9vbnE ITSWhjLTKhzdVX1EIIDOszjSX8QGMXLgh7XQdk+MvmsUV1bRgwkX4KsWEakSM2oekkwP N9Z5w8qffSx2aWLnR7VXjIBKHT9FP9Lpvo7z/XlwliNnTFb1tb8aycS1xTUQoZIn/rXN OP1A== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=in-reply-to:content-disposition:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:references:message-id:subject:cc :to:from:date:dkim-signature; bh=zjS1T5EZDkISTMFA/Hv7zuCa3iq95DmRVfFX3p+XzvU=; fh=7aeDFuW0lEEAk8vAd9I5/6kbFRuexDlbF1VfszOyWIQ=; b=M3Gt5wJ8YXQiaUl7SU7scjcTTzLZMrIeiNIkAw4Gn4z0BvlVE9vO+P8mh2KB8ZotKJ JpVMMHt/Rxt1F7YjgjZ0CS9LdS1JMaKBcCBfZjAfEVPIQrrqt3nJLa/UzIbEWv056ZfE 3pm1gB/gOumyhcgubMumPelIN1CoezdWTn4uEb7Xw628xyz59R5GdxA41doHQog9+Jxd zkD1e9YXbIQntHSctdS0a9ZNjiJqZKpftex2ik3SSU9cchvox6uIYF2rja1x/SVF0YV3 fJivQaJ2MAanAHpIETkCwqnOWxlhGakwAqSXHyCzID2+shen4AWFjS0pLwx+qFFL4jcA QsvA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@gmail.com header.s=20230601 header.b=hpaY0AEn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-96899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from am.mirrors.kernel.org (am.mirrors.kernel.org. [2604:1380:4601:e00::3]) by mx.google.com with ESMTPS id g22-20020a170906395600b00a446b9dc75asi6945737eje.719.2024.03.08.03.08.31 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 03:08:31 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-96899-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 header.i=@gmail.com header.s=20230601 header.b=hpaY0AEn; arc=pass (i=1 spf=pass spfdomain=gmail.com dkim=pass dkdomain=gmail.com dmarc=pass fromdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-96899-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:4601:e00::3 as permitted sender) smtp.mailfrom="linux-kernel+bounces-96899-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com 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 DB1881F25FD2 for ; Fri, 8 Mar 2024 11:08:30 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id B27A655E47; Fri, 8 Mar 2024 11:08:19 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="hpaY0AEn" Received: from mail-ed1-f43.google.com (mail-ed1-f43.google.com [209.85.208.43]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 505D554746; Fri, 8 Mar 2024 11:08:17 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.208.43 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709896098; cv=none; b=sh/co3er/6gzUqt44NTAR4JTUMT8g62L6gtFrLanLDsmu/mtPWRVKtfCrtDD0Ud7fhslK3R3LTpM0oVNMEoA7tLBTxjIsZbhnTYF1XWuxogOJpWZ9jpY0ioQF54D3m1fil+ciy61VIF0llON1C0HJ7jhq6uqWYsqSmxvSoBPyA4= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1709896098; c=relaxed/simple; bh=OR4ng6hQvro7ZBsX1o3XaRMRvF5ODFgK2Hn0v+CtAUQ=; h=Date:From:To:Cc:Subject:Message-ID:References:MIME-Version: Content-Type:Content-Disposition:In-Reply-To; b=ZWfdkx2L6H56F7CHnwlntVkT5OpYpzsvP1rmQ38O3a1VFJV2n1WYBGuM0mSgYaKLhCqbODLf1l5KKNsQfo1GYDd9a/EwW6YLi//Bap1LvZVuD6WzYIDBtnZyZLtomWd28c8FFxY7VPfMUcRbYQWUnE57iakcgzPc/7seG60m5TQ= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=hpaY0AEn; arc=none smtp.client-ip=209.85.208.43 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-ed1-f43.google.com with SMTP id 4fb4d7f45d1cf-5682ecd1f81so536171a12.0; Fri, 08 Mar 2024 03:08:17 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1709896095; x=1710500895; darn=vger.kernel.org; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:from:to:cc:subject:date:message-id:reply-to; bh=zjS1T5EZDkISTMFA/Hv7zuCa3iq95DmRVfFX3p+XzvU=; b=hpaY0AEnPMgxMXhuNcBnbsd1jfk3ddRkv2ED884gpjWpopJR93RMCzWSVoP69UpAMF vTgHecXEL3TuwpzAaL7BWuN+S1jTeVnvTv95lYHXzSexUIMPgzlCRfNgtWwxsMlNOBSK ukDuhoURE/qCotx/KKalihyEv0NPK1Yik5OLRtT9WfiZMSbBU0XvDkJOsKU/1S+Bj1dJ OTdDo5RTfJHz56muoYADiKvjKi05kZnl7LwXgY1dM01ZwtfD8ALP0h3WQzL6fQ9/6kpb 1Sb67eP92urQACAUVf1xidX9zJbW7a4QQBwdckD9Yp5Tk1+mNtIROfBkdh3B2NnbD7dw x3GQ== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1709896095; x=1710500895; h=in-reply-to:content-disposition:mime-version:references:message-id :subject:cc:to:from:date:x-gm-message-state:from:to:cc:subject:date :message-id:reply-to; bh=zjS1T5EZDkISTMFA/Hv7zuCa3iq95DmRVfFX3p+XzvU=; b=PvCppUFXoJX+D8Z/QoxhVBdStZPSx/XMnzbzy+U7i+zeXKWmmt1LRs5dTL0MicYfjH X8LzQaypr/JyR0wrKWARDI57p8shpWdqwIqZoUBqx9rojzFa4HuUqadkqLQvWuX9izpI vyqJIBil12bftT5BVfo5bHgKO9EdMrytdxYsOJkq8EY80PCpZBxixqoaoyUD0nuIl3K+ iZ/fRcbBlDXYAkZGXY41yPTLOxu5ATmtyN2l6vntCYtD4RUS1aeRIKML43En6BDvfIvw E4NMn2TFrlFIQDIvxd8QU20OKH/uwlZeg4EcqEAUMOaj1WpvGz05qNTzNDZK/lQcvHMS nnVw== X-Forwarded-Encrypted: i=1; AJvYcCXDf4H7bJBpmLzIKVMA+7Ctp+DsOhQ3RARn4pdOOa/GLQdL4DN7WBMfC1Dn8zwt/ZFhi8sV8zoOyVx7wonhThPOCDKxWUJk3icBqJrN X-Gm-Message-State: AOJu0YxgEEwFW9lDerklGfv+IJMdh3/kZArOyZCvBdP7g4GDwoozDJG7 ov5sQeflpoCc1y2Qw5YrOPU5U5UcK6RQz4SnqmzrDC/smUqoTEMp X-Received: by 2002:a50:cc43:0:b0:567:dea:c3bf with SMTP id n3-20020a50cc43000000b005670deac3bfmr1415625edi.41.1709896095312; Fri, 08 Mar 2024 03:08:15 -0800 (PST) Received: from tom-HP-ZBook-Fury-15-G7-Mobile-Workstation (net-188-217-49-82.cust.vodafonedsl.it. [188.217.49.82]) by smtp.gmail.com with ESMTPSA id p13-20020a05640210cd00b00568233e2fbbsm1040874edu.44.2024.03.08.03.08.14 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 08 Mar 2024 03:08:14 -0800 (PST) Date: Fri, 8 Mar 2024 12:08:13 +0100 From: Tommaso Merciai To: Umang Jain Cc: linux-media@vger.kernel.org, Alexander Shiyan , Kieran Bingham , Sakari Ailus , open list , Dave Stevenson Subject: Re: [PATCH v2 4/6] media: imx335: Use integer values for size registers Message-ID: References: <20240308083312.90279-1-umang.jain@ideasonboard.com> <20240308083312.90279-5-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-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20240308083312.90279-5-umang.jain@ideasonboard.com> Hi Umang, On Fri, Mar 08, 2024 at 02:03:10PM +0530, Umang Jain wrote: > 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 */ Looks good to me. Reviwed-by: Tommaso Merciai Thanks & Regards, Tommaso > -- > 2.43.0 > >