PM / OPP: Parse clock-latency and voltage-tolerance for v1 bindings
[firefly-linux-kernel-4.4.55.git] / drivers / base / power / opp / opp.h
index 416293b7da237d43805aa536e671d52b9698a081..fe44beb404ba27b5b5d6f288d62f5a7b85156f05 100644 (file)
@@ -138,6 +138,8 @@ struct device_list_opp {
  * @dentry:    debugfs dentry pointer of the real device directory (not links).
  * @dentry_name: Name of the real dentry.
  *
+ * @voltage_tolerance_v1: In percentage, for v1 bindings only.
+ *
  * This is an internal data structure maintaining the link to opps attached to
  * a device. This structure is not meant to be shared to users as it is
  * meant for book keeping and private to OPP library.
@@ -156,6 +158,10 @@ struct device_opp {
 
        struct device_node *np;
        unsigned long clock_latency_ns_max;
+
+       /* For backward compatibility with v1 bindings */
+       unsigned int voltage_tolerance_v1;
+
        bool shared_opp;
        struct dev_pm_opp *suspend_opp;