Skip to content

Commit

Permalink
OPP: Staticize lazy_opp_tables in of.c
Browse files Browse the repository at this point in the history
`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>
  • Loading branch information
Viresh Kumar committed Jun 8, 2023
1 parent b2a2ab0 commit 167eb2b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
3 changes: 0 additions & 3 deletions drivers/opp/core.c
Original file line number Diff line number Diff line change
Expand Up @@ -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 */
Expand Down
3 changes: 3 additions & 0 deletions drivers/opp/of.c
Original file line number Diff line number Diff line change
Expand Up @@ -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().
Expand Down
2 changes: 1 addition & 1 deletion drivers/opp/opp.h
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 167eb2b

Please sign in to comment.