On Tue, Sep 08, 2020 at 07:24:45PM +0900, Chanwoo Choi wrote: > From: Leonard Crestez <leonard.crestez@xxxxxxx> > > 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. > > Reviewed-by: Lukasz Luba <lukasz.luba@xxxxxxx> > Signed-off-by: Leonard Crestez <leonard.crestez@xxxxxxx> > [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@xxxxxxxxxxx> > --- > drivers/devfreq/devfreq.c | 46 +++++++++++++++++++++++++++++---------- > include/linux/devfreq.h | 6 +++++ > 2 files changed, 41 insertions(+), 11 deletions(-) Acked-by: Krzysztof Kozlowski <krzk@xxxxxxxxxx> Best regards, Krzysztof