summaryrefslogtreecommitdiffstats
path: root/drivers/base/power/opp/opp.h
diff options
context:
space:
mode:
authorViresh Kumar2016-02-09 06:00:38 +0100
committerRafael J. Wysocki2016-02-10 01:11:54 +0100
commitd54974c2513f487e9e70fbdc79c5da51c53e23da (patch)
treea38d10428beea70b692c2688def69aeb611b117a /drivers/base/power/opp/opp.h
parentPM / OPP: Parse clock-latency and voltage-tolerance for v1 bindings (diff)
downloadkernel-qcow2-linux-d54974c2513f487e9e70fbdc79c5da51c53e23da.tar.gz
kernel-qcow2-linux-d54974c2513f487e9e70fbdc79c5da51c53e23da.tar.xz
kernel-qcow2-linux-d54974c2513f487e9e70fbdc79c5da51c53e23da.zip
PM / OPP: Manage device clk
OPP core has got almost everything now to manage device's OPP transitions, the only thing left is device's clk. Get that as well. Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org> Reviewed-by: Stephen Boyd <sboyd@codeaurora.org> Signed-off-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com>
Diffstat (limited to 'drivers/base/power/opp/opp.h')
-rw-r--r--drivers/base/power/opp/opp.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/base/power/opp/opp.h b/drivers/base/power/opp/opp.h
index fe44beb404ba..4f1bdfc7da03 100644
--- a/drivers/base/power/opp/opp.h
+++ b/drivers/base/power/opp/opp.h
@@ -22,6 +22,7 @@
#include <linux/rculist.h>
#include <linux/rcupdate.h>
+struct clk;
struct regulator;
/* Lock to allow exclusive modification to the device and opp lists */
@@ -134,6 +135,7 @@ struct device_list_opp {
* @supported_hw: Array of version number to support.
* @supported_hw_count: Number of elements in supported_hw array.
* @prop_name: A name to postfix to many DT properties, while parsing them.
+ * @clk: Device's clock handle
* @regulator: Supply regulator
* @dentry: debugfs dentry pointer of the real device directory (not links).
* @dentry_name: Name of the real dentry.
@@ -168,6 +170,7 @@ struct device_opp {
unsigned int *supported_hw;
unsigned int supported_hw_count;
const char *prop_name;
+ struct clk *clk;
struct regulator *regulator;
#ifdef CONFIG_DEBUG_FS