]> git.baikalelectronics.ru Git - kernel.git/commit
opp: Allow _generic_set_opp_clk_only() to work for non-freq devices
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 21 Jan 2021 07:08:13 +0000 (12:38 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 2 Feb 2021 04:58:01 +0000 (10:28 +0530)
commit6115bef74b6d9b97959179fa8a057ccf8d6f7493
treef30361ba135c03a55b1f2f652b1f27778b0ccdb2
parent5deeefb7071d52c7b0a100be4df4522f1b463ede
opp: Allow _generic_set_opp_clk_only() to work for non-freq devices

In order to avoid conditional statements at the caller site, this patch
updates _generic_set_opp_clk_only() to work for devices that don't
change frequency (like power domains, etc.). Return 0 if the clk pointer
passed to this routine is not valid.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
Tested-by: Dmitry Osipenko <digetx@gmail.com>
drivers/opp/core.c