PM / devfreq: Add devfreq_get_devfreq_by_phandle()
authorChanwoo Choi <cw00.choi@samsung.com>
Tue, 10 Nov 2015 11:31:07 +0000 (20:31 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 3 May 2016 02:20:06 +0000 (11:20 +0900)
commit8f510aeb223b26c4ffbece9fa92e4befea470f57
treebf4fb4bad488510fab1baf43cbb42df08e0e2b7e
parent72c160bda1dbe75d532502374a6cb6be28990093
PM / devfreq: Add devfreq_get_devfreq_by_phandle()

This patch adds the new devfreq_get_devfreq_by_phandle() OF helper function
which can find the instance of devfreq device by using phandle ("devfreq").

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Signed-off-by: MyungJoo Ham <myungjoo.ham@samsung.com>
[m.reichl and linux.amoon: Tested it on exynos4412-odroidu3 board]
Tested-by: Markus Reichl <m.reichl@fivetechno.de>
Tested-by: Anand Moon <linux.amoon@gmail.com>
Acked-by: Krzysztof Kozlowski <k.kozlowski@samsung.com>
drivers/devfreq/devfreq.c
include/linux/devfreq.h