clk: samsung: Use single CPU clock notifier callback for all chips
authorSam Protsenko <semen.protsenko@linaro.org>
Sat, 24 Feb 2024 20:20:43 +0000 (14:20 -0600)
committerKrzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
Sun, 25 Feb 2024 15:54:10 +0000 (16:54 +0100)
commitc9bc1f778625b0ae93641e6d14d83b62d16e549d
treec049cb69b94a87f53bb4dc89077e8bae32b0759d
parent84d42803e4f163b1b6cb4ae05d91af693a1985c2
clk: samsung: Use single CPU clock notifier callback for all chips

Reduce the code duplication by making all chips use a single version of
exynos_cpuclk_notifier_cb() function. That will prevent the code bloat
when adding new chips support too.

Also don't pass base address to pre/post rate change functions, as it
can be easily derived from already passed cpuclk param.

No functional change.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Link: https://lore.kernel.org/r/20240224202053.25313-6-semen.protsenko@linaro.org
Signed-off-by: Krzysztof Kozlowski <krzysztof.kozlowski@linaro.org>
drivers/clk/samsung/clk-cpu.c