PM / devfreq: exynos-bus: Convert to use dev_pm_opp_set_rate()
authorKamil Konieczny <k.konieczny@partner.samsung.com>
Wed, 7 Aug 2019 13:38:36 +0000 (15:38 +0200)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Sun, 25 Aug 2019 03:46:48 +0000 (12:46 +0900)
commit4294a779bd8dff6c65e7e85ffe7a1ea236e92a68
tree07cccfb3b8abca7f8cbe4d6520f34f1609b99f29
parent2c2b20e0da89c76759ee28c6824413ab2fa3bfc6
PM / devfreq: exynos-bus: Convert to use dev_pm_opp_set_rate()

Reuse opp core code for setting bus clock and voltage. As a side
effect this allow usage of coupled regulators feature (required
for boards using Exynos5422/5800 SoCs) because dev_pm_opp_set_rate()
uses regulator_set_voltage_triplet() for setting regulator voltage
while the old code used regulator_set_voltage_tol() with fixed
tolerance. This patch also removes no longer needed parsing of DT
property "exynos,voltage-tolerance" (no Exynos devfreq DT node uses
it). After applying changes both functions exynos_bus_passive_target()
and exynos_bus_target() have the same code, so remove
exynos_bus_passive_target(). In exynos_bus_probe() replace it with
exynos_bus_target.

Signed-off-by: Kamil Konieczny <k.konieczny@partner.samsung.com>
Acked-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/exynos-bus.c