]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
OPP: Move dev_pm_opp_icc_bw to internal opp.h
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 28 Dec 2023 07:34:41 +0000 (13:04 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Wed, 3 Jan 2024 10:51:42 +0000 (16:21 +0530)
It isn't used by any driver or API, privatize it.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/opp.h
include/linux/pm_opp.h

index 23dcb2fbf8c3a55082e5e16230d05d576306cc3e..558c9ac6a6fa649bfeca143a63e3c9fb2d7b4ba9 100644 (file)
@@ -50,6 +50,18 @@ struct opp_config_data {
        unsigned int flags;
 };
 
+/**
+ * struct dev_pm_opp_icc_bw - Interconnect bandwidth values
+ * @avg:       Average bandwidth corresponding to this OPP (in icc units)
+ * @peak:      Peak bandwidth corresponding to this OPP (in icc units)
+ *
+ * This structure stores the bandwidth values for a single interconnect path.
+ */
+struct dev_pm_opp_icc_bw {
+       u32 avg;
+       u32 peak;
+};
+
 /*
  * Internal data structure organization with the OPP layer library is as
  * follows:
index 74768c47d790446af9501c0c23f1ace58308fcef..76dcb7f37bcdff2b58973ab1a084bdfe0e984255 100644 (file)
@@ -45,18 +45,6 @@ struct dev_pm_opp_supply {
        unsigned long u_watt;
 };
 
-/**
- * struct dev_pm_opp_icc_bw - Interconnect bandwidth values
- * @avg:       Average bandwidth corresponding to this OPP (in icc units)
- * @peak:      Peak bandwidth corresponding to this OPP (in icc units)
- *
- * This structure stores the bandwidth values for a single interconnect path.
- */
-struct dev_pm_opp_icc_bw {
-       u32 avg;
-       u32 peak;
-};
-
 typedef int (*config_regulators_t)(struct device *dev,
                        struct dev_pm_opp *old_opp, struct dev_pm_opp *new_opp,
                        struct regulator **regulators, unsigned int count);