]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitff0b48c6489c712488221d9d90de4d61ef76a162
tree8fae55f8edfabd2613991f2948cb0bd746aa427a
parent0de7288a58b9470d448380f454857308ef8ca86d
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