Received: by 2002:a05:6a10:8c0a:0:0:0:0 with SMTP id go10csp5881635pxb; Tue, 16 Feb 2021 09:47:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJy1dCAvUZaRDmgkZ5aY73eg7Qn2rRiIuirZ3oEXwJQrCM6vE0zU/JPofzALxso6CN9MeZC9 X-Received: by 2002:a17:906:4019:: with SMTP id v25mr15197455ejj.531.1613497626071; Tue, 16 Feb 2021 09:47:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1613497626; cv=none; d=google.com; s=arc-20160816; b=BwIZ4g8UrNNHTkXfC8WNc0Cr4S/3/5ZlZvQxrTXoRGap9hvrPgxSoE6xUdx/8lYJpv WYabQ6YEv44bPPlCbYAg40ycWYciSWfjoS0XojD49plIMFBPSPcvA5rkYoSBiyzFABpS Kf5869crpt3zv3Qp6DKIqlQQYA9RGPnJ2eW2d7qXFoGX0UMrdimjiS7OIEi7wM/UXlHm OrMtQtdDZdPiN9AT1W6pRXyrY3KrOUM6kludPUlbHMxI7SuhUWkMiEynrVgJca2GbE5W u8flt7UBCv4IXJdY37N3sNnG4c2SA9eFYcjPsZII8mHzXDL72v2A2IUDk0tUoSqvTmh5 u5BQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :references:in-reply-to:message-id:date:subject:cc:to:from; bh=iQ9EKwPqTfuaLtAYDSVjPVu7uW3uiPJeciy4YngSnBI=; b=pQYol6M3QiXOZWWmJQdIXe0BAJrvDPk4w81XjF3i8AmW4RFyHpviuQUXsKmyC+laO9 8rcU0ImP4LtK/PuapeF3B648cQev4ZAbBdt1jHl/mNvrqxV8NWX7vCuF1XWg+gQ5iZ39 jtggPFQL0Afcw99dK/ZPQhHrHj+9YcNQKcejY/zwhnDvc8jewSgXJASWmxB6I1NUE1s6 bKXL9J4w+dq4NZVM4pubBwAx8+UnGx+QOZz4HC0jqRzdxA+SjJWtis3EAhvyhJSqnEOD Wa8Meqzi/AMkQ4TUfCuRlkUyCy92BdGxapxjQ0WoWuUJBc3LeEM/vtpJr21lfYgwo+Ga yMcQ== ARC-Authentication-Results: i=1; mx.google.com; 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 d15si9199257edq.404.2021.02.16.09.46.43; Tue, 16 Feb 2021 09:47:06 -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; 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 S231168AbhBPRqK (ORCPT + 99 others); Tue, 16 Feb 2021 12:46:10 -0500 Received: from relay12.mail.gandi.net ([217.70.178.232]:46653 "EHLO relay12.mail.gandi.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231224AbhBPRm7 (ORCPT ); Tue, 16 Feb 2021 12:42:59 -0500 Received: from uno.lan (93-34-118-233.ip49.fastwebnet.it [93.34.118.233]) (Authenticated sender: jacopo@jmondi.org) by relay12.mail.gandi.net (Postfix) with ESMTPSA id 51C28200012; Tue, 16 Feb 2021 17:41:44 +0000 (UTC) From: Jacopo Mondi To: kieran.bingham+renesas@ideasonboard.com, laurent.pinchart+renesas@ideasonboard.com, niklas.soderlund+renesas@ragnatech.se, geert@linux-m68k.org Cc: Jacopo Mondi , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-renesas-soc@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH 10/16] media: i2c: max9286: Rename reverse_channel_mv Date: Tue, 16 Feb 2021 18:41:40 +0100 Message-Id: <20210216174146.106639-11-jacopo+renesas@jmondi.org> X-Mailer: git-send-email 2.30.0 In-Reply-To: <20210216174146.106639-1-jacopo+renesas@jmondi.org> References: <20210216174146.106639-1-jacopo+renesas@jmondi.org> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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; 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; -- 2.30.0