Skip to content

Commit c561922

Browse files
vireshkAlex Shi
authored andcommitted
cpufreq: dt: Rename 'need_update' to 'opp_v1'
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> (cherry picked from commit 457e99e60a8f5a40b7da204c0bfc8a86ad2161b9) Signed-off-by: Alex Shi <alex.shi@linaro.org>
1 parent abd4856 commit c561922

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

drivers/cpufreq/cpufreq-dt.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ static int cpufreq_init(struct cpufreq_policy *policy)
199199
struct dev_pm_opp *suspend_opp;
200200
unsigned long min_uV = ~0, max_uV = 0;
201201
unsigned int transition_latency;
202-
bool need_update = false;
202+
bool opp_v1 = false;
203203
int ret;
204204

205205
ret = allocate_resources(policy->cpu, &cpu_dev, &cpu_reg, &cpu_clk);
@@ -223,7 +223,7 @@ static int cpufreq_init(struct cpufreq_policy *policy)
223223
* finding shared-OPPs for backward compatibility.
224224
*/
225225
if (ret == -ENOENT)
226-
need_update = true;
226+
opp_v1 = true;
227227
else
228228
goto out_node_put;
229229
}
@@ -251,7 +251,7 @@ static int cpufreq_init(struct cpufreq_policy *policy)
251251
goto out_free_opp;
252252
}
253253

254-
if (need_update) {
254+
if (opp_v1) {
255255
struct cpufreq_dt_platform_data *pd = cpufreq_get_driver_data();
256256

257257
if (!pd || !pd->independent_clocks)

0 commit comments

Comments
 (0)