UPSTREAM: 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)
committerHuang, Tao <huangtao@rock-chips.com>
Wed, 10 Aug 2016 10:29:57 +0000 (18:29 +0800)
commitee847a5bdf53aee4d2d65bec8bc3a92feeaf47f3
tree7d8e852caf4d63caaadb149f7eb90830823169e7
parenta8ff30556ca00b2ac91fac4f7fa3f924cf23328a
UPSTREAM: 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").

Change-Id: I0d0ed78930811e896215c2b7a9125cad69310407
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>
(cherry picked from commit 8f510aeb223b26c4ffbece9fa92e4befea470f57)
drivers/devfreq/devfreq.c
include/linux/devfreq.h