OPP: Make dev_pm_opp_set_regulators() accept NULL terminated list
authorViresh Kumar <viresh.kumar@linaro.org>
Mon, 4 Jul 2022 10:40:39 +0000 (16:10 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Fri, 8 Jul 2022 05:56:44 +0000 (11:26 +0530)
commit87686cc845c3be7dea777f1dbf2de0767007cda8
treec1a21bfe9ebad676f452baf132a586041dda4273
parent0a43452bb6b1f499b695b123e9fedf4b1a9bbf64
OPP: Make dev_pm_opp_set_regulators() accept NULL terminated list

Make dev_pm_opp_set_regulators() accept a NULL terminated list of names
instead of making the callers keep the two parameters in sync, which
creates an opportunity for bugs to get in.

Suggested-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Reviewed-by: Steven Price <steven.price@arm.com> # panfrost
Reviewed-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/cpufreq/cpufreq-dt.c
drivers/cpufreq/ti-cpufreq.c
drivers/devfreq/exynos-bus.c
drivers/gpu/drm/lima/lima_devfreq.c
drivers/gpu/drm/panfrost/panfrost_devfreq.c
drivers/gpu/drm/panfrost/panfrost_drv.c
drivers/opp/core.c
drivers/soc/tegra/pmc.c
include/linux/pm_opp.h