[<prev] [next>] [<thread-prev] [day] [month] [year] [list]
Message-ID: <162466342649.3259633.211016165907683345@swboyd.mtv.corp.google.com>
Date: Fri, 25 Jun 2021 16:23:46 -0700
From: Stephen Boyd <sboyd@...nel.org>
To: Alexandru Ardelean <aardelean@...iqon.com>,
linux-clk@...r.kernel.org, linux-kernel@...r.kernel.org,
linux-tegra@...r.kernel.org
Cc: pdeschrijver@...dia.com, pgaikwad@...dia.com,
mturquette@...libre.com, thierry.reding@...il.com,
jonathanh@...dia.com, Alexandru Ardelean <aardelean@...iqon.com>
Subject: Re: [PATCH] clk: tegra: clk-tegra124-dfll-fcpu: don't use devm functions for regulator
Quoting Alexandru Ardelean (2021-06-24 01:47:37)
> The purpose of the device-managed functions is to bind the life-time of an
> object to that of a parent device object.
>
> This is not the case for the 'vdd-cpu' regulator in this driver. A
> reference is obtained via devm_regulator_get() and immediately released
> with devm_regulator_put().
>
> In this case, the usage of devm_ functions is slightly excessive, as the
> un-managed versions of these functions is a little cleaner (and slightly
> more economical in terms of allocation).
>
> This change converts the devm_regulator_{get,put}() to
> regulator_{get,put}() in the get_alignment_from_regulator() function of
> this driver.
>
> Signed-off-by: Alexandru Ardelean <aardelean@...iqon.com>
> ---
Applied to clk-next
Powered by blists - more mailing lists