]> 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)
commit35e74b2ee8ec64da6f8067c5b0744f16ff19915b
treef30361ba135c03a55b1f2f652b1f27778b0ccdb2
parent3f62670fcca4af3fe6492100a548603831ecc61d
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