From: Jon Hunter Subject: Re: [PATCH 4/7] soc/tegra: pmc: Pass struct tegra_pmc * where possible Date: Fri, 25 Jan 2019 10:55:28 +0000 Message-ID: References: <20190125102255.6862-1-thierry.reding@gmail.com> <20190125102255.6862-4-thierry.reding@gmail.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <20190125102255.6862-4-thierry.reding@gmail.com> Content-Language: en-US List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+linux-arm-kernel=m.gmane.org@lists.infradead.org To: Thierry Reding Cc: linux-tegra@vger.kernel.org, Stephen Warren , linux-arm-kernel@lists.infradead.org, Joseph Lo List-Id: linux-tegra@vger.kernel.org On 25/01/2019 10:22, Thierry Reding wrote: > From: Thierry Reding > > Instead of using the global pmc variable, pass around a pointer where > possible. Also, replace most occurrences of pr_*() functions by their > equivalent dev_*() functions, reusing the pmc->dev pointer. > > It's not possible to get completely rid of the global variable because > some of the public API that this driver exposes still relies on it. > > Signed-off-by: Thierry Reding Acked-by: Jon Hunter Cheers Jon -- nvpublic