cpufreq: s3c2412: use global s3c2412_cpufreq_setrefresh
authorArnd Bergmann <arnd@arndb.de>
Thu, 6 Aug 2020 18:20:53 +0000 (20:20 +0200)
committerKrzysztof Kozlowski <krzk@kernel.org>
Thu, 20 Aug 2020 15:52:54 +0000 (17:52 +0200)
commit44c01f5ce1c7518886a87d5522528e30e0b4d9f8
tree7d3113180bc6d87ba18a3c2bf66b83cad9a52d71
parent81b11a6a09964cfea4c525d22548790a1d92d38f
cpufreq: s3c2412: use global s3c2412_cpufreq_setrefresh

There are two identical copies of the s3c2412_cpufreq_setrefresh
function: a static one in the cpufreq driver and a global
version in iotiming-s3c2412.c.

As the function requires the use of a hardcoded register address
from a header that we want to not be visible to drivers, just
move the existing global function and add a declaration in
one of the cpufreq header files.

Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Link: https://lore.kernel.org/r/20200806182059.2431-36-krzk@kernel.org
Signed-off-by: Krzysztof Kozlowski <krzk@kernel.org>
drivers/cpufreq/s3c2412-cpufreq.c
include/linux/soc/samsung/s3c-cpufreq-core.h