[PATCH 4.4.y-cip 09/23] cpufreq: dt: Rename 'need_update' to 'opp_v1'


Chen-Yu Tsai (Moxa) <wens@...>
 

From: Viresh Kumar <viresh.kumar@linaro.org>

commit 457e99e60a8f5a40b7da204c0bfc8a86ad2161b9 upstream.

That's the real purpose of this field, i.e. to take special care of old
OPP V1 bindings. Lets name it accordingly, so that it can be used
elsewhere.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Reviewed-by: Stephen Boyd <sboyd@codeaurora.org>
Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Signed-off-by: Chen-Yu Tsai (Moxa) <wens@csie.org>
---
drivers/cpufreq/cpufreq-dt.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/drivers/cpufreq/cpufreq-dt.c b/drivers/cpufreq/cpufreq-dt.c
index ace0168274d4b..0047d20803db7 100644
--- a/drivers/cpufreq/cpufreq-dt.c
+++ b/drivers/cpufreq/cpufreq-dt.c
@@ -199,7 +199,7 @@ static int cpufreq_init(struct cpufreq_policy *policy=
)
struct dev_pm_opp *suspend_opp;
unsigned long min_uV =3D ~0, max_uV =3D 0;
unsigned int transition_latency;
- bool need_update =3D false;
+ bool opp_v1 =3D false;
int ret;
=20
ret =3D allocate_resources(policy->cpu, &cpu_dev, &cpu_reg, &cpu_clk);
@@ -223,7 +223,7 @@ static int cpufreq_init(struct cpufreq_policy *policy=
)
* finding shared-OPPs for backward compatibility.
*/
if (ret =3D=3D -ENOENT)
- need_update =3D true;
+ opp_v1 =3D true;
else
goto out_node_put;
}
@@ -251,7 +251,7 @@ static int cpufreq_init(struct cpufreq_policy *policy=
)
goto out_free_opp;
}
=20
- if (need_update) {
+ if (opp_v1) {
struct cpufreq_dt_platform_data *pd =3D cpufreq_get_driver_data();
=20
if (!pd || !pd->independent_clocks)
--=20
2.27.0

Join cip-dev@lists.cip-project.org to automatically receive all group messages.