]> git.baikalelectronics.ru Git - kernel.git/commit
PM / devfreq: event: Find the instance of devfreq-event device by using phandle
authorChanwoo Choi <cw00.choi@samsung.com>
Thu, 14 Apr 2016 05:37:12 +0000 (14:37 +0900)
committerMyungJoo Ham <myungjoo.ham@samsung.com>
Tue, 3 May 2016 02:21:51 +0000 (11:21 +0900)
commit2b6776da752297439c0ebec6c5f437d2565e282f
tree9ec34e787a65122cd9c3cf82aa6d41d687dc5274
parent8bc65d18350c672541282fd8d84f38854c28f0e0
PM / devfreq: event: Find the instance of devfreq-event device by using phandle

This patch use the phandle to find the instance of devfreq-event device in
Device Tree when calling the devfreq_event_get_edev_by_phandle() because there
is two type devfreq-event devices as following:

First case, exynos-ppmu.c driver provides the maximum four event of each PPMU.
So, when getting the instance of devfreq-event device, using the unique name of
struct devfreq_event_desc.

Second case, exynos-nocp.c driver provide the only one event of each NoC Probe
device. So, when getting the instance of devfreq-event device, using the
phandle of each NoC probe device.

Signed-off-by: Chanwoo Choi <cw00.choi@samsung.com>
Acked-by: MyungJoo Ham <myungjoo.ham@samsung.com>
drivers/devfreq/devfreq-event.c