PM / devfreq: passive: Reduce duplicate code when passive_devfreq case
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 2 Mar 2021 08:22:50 +0000 (17:22 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 17 May 2022 09:24:39 +0000 (18:24 +0900)
commit05723e71234b60a1a47313ea1a889797ec648f1c
tree8fae55f8edfabd2613991f2948cb0bd746aa427a
parenta03dacb0316f74400846aaf144d6c73f4217ca08
PM / devfreq: passive: Reduce duplicate code when passive_devfreq case

In order to keep the consistent coding style between passive_devfreq
and passive_cpufreq, use common code for handling required opp property.
Also remove the unneed conditional statement and unify the comment
of both passive_devfreq and passive_cpufreq when getting the target frequency.

Tested-by: Chen-Yu Tsai <wenst@chromium.org>
Tested-by: Johnson Wang <johnson.wang@mediatek.com>
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/governor_passive.c