OPP: Assert clk_count == 1 for single clk helpers
authorViresh Kumar <viresh.kumar@linaro.org>
Fri, 10 Jun 2022 04:57:51 +0000 (10:27 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Tue, 12 Jul 2022 15:05:20 +0000 (20:35 +0530)
commitf123ea74511dfab70598cd584a11ad596454a689
tree19d4972a9763e7b55adc1115a999e585802ca9d9
parente10a46443f767cc6be201a10c767745f0afc04ac
OPP: Assert clk_count == 1 for single clk helpers

Many helpers can be safely called only for devices that have a single
clk associated with them. Assert the same for those routines.

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