Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp1238294pxb; Sun, 21 Feb 2021 17:31:25 -0800 (PST) X-Google-Smtp-Source: ABdhPJwSLRuGidDkd97QbRCzD7nFSiNr0YdDXCJm3LKosNv6ExsioXvEgbX5B9NRfxV/YHtBsFmZ X-Received: by 2002:a17:907:3fa6:: with SMTP id hr38mr18962038ejc.24.1613957485282; Sun, 21 Feb 2021 17:31:25 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613957485; cv=none; d=google.com; s=arc-20160816; b=o7ozesuaaITRNzLIAVELMeKDe/R13vwvrODNL+zgLUvE9eLSWJONdKxL7fUKgb47rr 4txtHR+CaIfazLsGDq6mdRwmyDxc/lg04b2/FMGqszy9FV6n1NZw4CIMKBJgZdFVRkzJ co/mw0AYXUckExaOrTfjS8WyD57jCg//6Bqr+30MsTAX+hbsAon42IXcWfWMnuZ4DMCv saz/JWkCEnC6UqwAokKKj0GksIYnqjxZxRnfLD063Za/HMzgGihv1TtN5dNDuRIb4CBC uqptobfuEFzganiy/f4T0qiHug6XEbMlokeqj93WceFx+AzlU40lcxHAAGgioANUTR9L 7Lyg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JOx/Ut5XlrVxfb+wibMAhq4pgGo8SzJdGocHAGqCv2E=; b=zOSN6eW0u/igI/D9d0doKg4G1949e6f1FBOrhgSlBD+QRYQU3R7RImc9WFy8SEpfSt 0m9pES++VY5SEYtWbK+lSmrDIjJBLA5U94PgNcmZIyZ1NT6x+MhyU65LCQ9W9VilN+wP XIhfkBGbrdzG+eTsZiFNhRWk65KQgAbM6ulFpB+tmaenaKkRXPHn1oO1qteR5UqJo4aZ Why5Jf7xL2SFGowMqUTD6uRfn3FdXF5JjH5KyhseBkRJrnocgUJ6zDtsN4s1e5+tvbjY 9mStOY7osZa1tjtb77Vbsv1g73ICF7m1+s33N1RJk5bHKM5/fnyEf50hQxWo2mbGev/v tXag== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=SGRmlIAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id dk7si12273964ejb.570.2021.02.21.17.31.03; Sun, 21 Feb 2021 17:31:25 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass (test mode) header.i=@ideasonboard.com header.s=mail header.b=SGRmlIAl; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230339AbhBVBac (ORCPT + 99 others); Sun, 21 Feb 2021 20:30:32 -0500 Received: from perceval.ideasonboard.com ([213.167.242.64]:54738 "EHLO perceval.ideasonboard.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230248AbhBVBa0 (ORCPT ); Sun, 21 Feb 2021 20:30:26 -0500 Received: from pendragon.ideasonboard.com (62-78-145-57.bb.dnainternet.fi [62.78.145.57]) by perceval.ideasonboard.com (Postfix) with ESMTPSA id 483AE517; Mon, 22 Feb 2021 02:29:44 +0100 (CET) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ideasonboard.com; s=mail; t=1613957384; bh=WIYtArx8kmB0bXNl34Zf0YcBtLjG5KZn46ZFZXcecfY=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=SGRmlIAl98Xa6QRVSVdfZvpUgHfGUlDNhm8dirby3KsDKKu9oTwfSMRkNhulp9spj xNLfhNoMOIrsNgi7fjEEDJW6FIlBIskHTQdPbFTOVKAFOf7PCWCk3m5ljn8U07FEef dpRC3zr6V3aaFD7HwfGiw4anSBVD8khSBlIJfEbo= Date: Mon, 22 Feb 2021 03:29:17 +0200 From: Laurent Pinchart To: Jacopo Mondi Cc: kieran.bingham+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, geert@linux-m68k.org, Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 10/16] media: i2c: max9286: Rename reverse_channel_mv Message-ID: References: <20210216174146.106639-1-jacopo+renesas@jmondi.org> <20210216174146.106639-11-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Disposition: inline In-Reply-To: <20210216174146.106639-11-jacopo+renesas@jmondi.org> Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Jacopo, Thank you for the patch. On Tue, Feb 16, 2021 at 06:41:40PM +0100, Jacopo Mondi wrote: > Rename the reverse_channel_mv variable to init_rev_chan_mv as > the next patches will cache the reverse channel amplitude in > a new driver variable. > > Signed-off-by: Jacopo Mondi > --- > drivers/media/i2c/max9286.c | 10 +++++----- > 1 file changed, 5 insertions(+), 5 deletions(-) > > diff --git a/drivers/media/i2c/max9286.c b/drivers/media/i2c/max9286.c > index 1d9951215868..1f14cd817fbf 100644 > --- a/drivers/media/i2c/max9286.c > +++ b/drivers/media/i2c/max9286.c > @@ -163,7 +163,7 @@ struct max9286_priv { > unsigned int mux_channel; > bool mux_open; > > - u32 reverse_channel_mv; > + u32 init_rev_chan_mv; Maybe it could be time to add some kerneldoc to this structure, or just a comment for this field, to explain what it stores ? Reviewed-by: Laurent Pinchart > > struct v4l2_ctrl_handler ctrls; > struct v4l2_ctrl *pixelrate; > @@ -563,7 +563,7 @@ static int max9286_notify_bound(struct v4l2_async_notifier *notifier, > * - Disable auto-ack as communication on the control channel are now > * stable. > */ > - if (priv->reverse_channel_mv < 170) > + if (priv->init_rev_chan_mv < 170) > max9286_reverse_channel_setup(priv, 170); > max9286_check_config_link(priv, priv->source_mask); > > @@ -971,7 +971,7 @@ static int max9286_setup(struct max9286_priv *priv) > * only. This should be disabled after the mux is initialised. > */ > max9286_configure_i2c(priv, true); > - max9286_reverse_channel_setup(priv, priv->reverse_channel_mv); > + max9286_reverse_channel_setup(priv, priv->init_rev_chan_mv); > > /* > * Enable GMSL links, mask unused ones and autodetect link > @@ -1236,9 +1236,9 @@ static int max9286_parse_dt(struct max9286_priv *priv) > if (of_property_read_u32(dev->of_node, > "maxim,reverse-channel-microvolt", > &reverse_channel_microvolt)) > - priv->reverse_channel_mv = 170; > + priv->init_rev_chan_mv = 170; > else > - priv->reverse_channel_mv = reverse_channel_microvolt / 1000U; > + priv->init_rev_chan_mv = reverse_channel_microvolt / 1000U; > > priv->route_mask = priv->source_mask; > -- Regards, Laurent Pinchart