PM / devfreq: Add devfreq_get_devfreq_by_node function
authorLeonard Crestez <leonard.crestez@nxp.com>
Tue, 8 Sep 2020 10:24:45 +0000 (19:24 +0900)
committerChanwoo Choi <cw00.choi@samsung.com>
Tue, 29 Sep 2020 08:50:09 +0000 (17:50 +0900)
commit7b38b7b0427df70237e3c9c73f2db6b99be2b4b9
tree9a92fc61050105b294a42d142f12170f935950fb
parenta1b8638ba1320e6684aa98233c15255eb803fac7
PM / devfreq: Add devfreq_get_devfreq_by_node function

Split off part of devfreq_get_devfreq_by_phandle into a separate
function. This allows callers to fetch devfreq instances by enumerating
devicetree instead of explicit phandles.

Acked-by: Krzysztof Kozlowski <krzk@kernel.org>
Reviewed-by: Lukasz Luba <lukasz.luba@arm.com>
Signed-off-by: Leonard Crestez <leonard.crestez@nxp.com>
[cw00.choi: Export devfreq_get_devfreq_by_node function and
 add function to devfreq.h when CONFIG_PM_DEVFREQ is enabled.]
Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
drivers/devfreq/devfreq.c
include/linux/devfreq.h