summaryrefslogtreecommitdiffstats
path: root/drivers/opp/opp.h
diff options
context:
space:
mode:
authorViresh Kumar2017-11-29 10:48:36 +0100
committerViresh Kumar2018-05-09 06:45:19 +0200
commita88bd2a51e901ed8081841d647157de8153df813 (patch)
treed5d01ef8c2d292f64c1cd234c72ff54da8600d74 /drivers/opp/opp.h
parentPM / OPP: Implement dev_pm_opp_of_add_table_indexed() (diff)
downloadkernel-qcow2-linux-a88bd2a51e901ed8081841d647157de8153df813.tar.gz
kernel-qcow2-linux-a88bd2a51e901ed8081841d647157de8153df813.tar.xz
kernel-qcow2-linux-a88bd2a51e901ed8081841d647157de8153df813.zip
PM / OPP: Implement of_dev_pm_opp_find_required_opp()
A device's DT node or its OPP nodes can contain a phandle to other device's OPP node, in the "required-opps" property. This patch implements a routine to find that required OPP from the node that contains the "required-opps" property. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Ulf Hansson <ulf.hansson@linaro.org>
Diffstat (limited to 'drivers/opp/opp.h')
-rw-r--r--drivers/opp/opp.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/opp/opp.h b/drivers/opp/opp.h
index 381a4fb15d5c..f9eccf9811ae 100644
--- a/drivers/opp/opp.h
+++ b/drivers/opp/opp.h
@@ -187,6 +187,7 @@ struct opp_table {
};
/* Routines internal to opp core */
+void dev_pm_opp_get(struct dev_pm_opp *opp);
void _get_opp_table_kref(struct opp_table *opp_table);
int _get_opp_count(struct opp_table *opp_table);
struct opp_table *_find_opp_table(struct device *dev);