OPP: Staticize `lazy_opp_tables` in of.c
authorViresh Kumar <viresh.kumar@linaro.org>
Thu, 8 Jun 2023 07:25:07 +0000 (12:55 +0530)
committerViresh Kumar <viresh.kumar@linaro.org>
Thu, 8 Jun 2023 07:25:07 +0000 (12:55 +0530)
`lazy_opp_tables` is only used in of.c, move it there and mark it
`static`.

Signed-off-by: Viresh Kumar <viresh.kumar@linaro.org>
drivers/opp/core.c
drivers/opp/of.c
drivers/opp/opp.h

index 7046487dc6f4373585fe75197ac81b4aaf4839e7..9f918077cd629f5657237f6273d33927da955fa6 100644 (file)
@@ -29,9 +29,6 @@
  */
 LIST_HEAD(opp_tables);
 
-/* OPP tables with uninitialized required OPPs */
-LIST_HEAD(lazy_opp_tables);
-
 /* Lock to allow exclusive modification to the device and opp lists */
 DEFINE_MUTEX(opp_table_lock);
 /* Flag indicating that opp_tables list is being updated at the moment */
index 8246e9b7afe7f970e94946ec23c7530edee1d5f2..c740a907ef7675449d2f273d5ea9119eae2a075c 100644 (file)
@@ -21,6 +21,9 @@
 
 #include "opp.h"
 
+/* OPP tables with uninitialized required OPPs */
+static LIST_HEAD(lazy_opp_tables);
+
 /*
  * Returns opp descriptor node for a device node, caller must
  * do of_node_put().
index 2a057c42ddf4d66c209c521596fb44ee46ea619e..eb71385d96c1af8ef17db6a94c219b400c8176c7 100644 (file)
@@ -26,7 +26,7 @@ struct regulator;
 /* Lock to allow exclusive modification to the device and opp lists */
 extern struct mutex opp_table_lock;
 
-extern struct list_head opp_tables, lazy_opp_tables;
+extern struct list_head opp_tables;
 
 /* OPP Config flags */
 #define OPP_CONFIG_CLK                 BIT(0)