summaryrefslogtreecommitdiffstats
path: root/include/linux/pm_opp.h
diff options
context:
space:
mode:
authorViresh Kumar2015-09-04 10:17:22 +0200
committerRafael J. Wysocki2015-09-15 02:03:15 +0200
commit1840995c52d44bec8c20d6c07a706dc1499da9da (patch)
tree7272d7d285eadaa307a25d8c8069fa852817e64f /include/linux/pm_opp.h
parentLinux 4.3-rc1 (diff)
downloadkernel-qcow2-linux-1840995c52d44bec8c20d6c07a706dc1499da9da.tar.gz
kernel-qcow2-linux-1840995c52d44bec8c20d6c07a706dc1499da9da.tar.xz
kernel-qcow2-linux-1840995c52d44bec8c20d6c07a706dc1499da9da.zip
PM / OPP: reuse of_parse_phandle()
We already have a better API to get the opp descriptor block's node from cpu-node. Lets reuse that instead of creating our own routines for the same stuff. That cleans the code a lot. This also kills a check we had earlier (as we are using the generic API now). Earlier we used to check if the operating-points-v2 property contained multiple phandles instead of a single phandle. Killing this check isn't an issue because, we only parse the first entry with of_parse_phandle(). So, if a user passes multiple phandles, its really his problem :) Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'include/linux/pm_opp.h')
0 files changed, 0 insertions, 0 deletions