Skip to content

Commit 167eb2b

Browse files
committed
OPP: Staticize lazy_opp_tables in of.c
`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>
1 parent b2a2ab0 commit 167eb2b

3 files changed

Lines changed: 4 additions & 4 deletions

File tree

drivers/opp/core.c

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -29,9 +29,6 @@
2929
*/
3030
LIST_HEAD(opp_tables);
3131

32-
/* OPP tables with uninitialized required OPPs */
33-
LIST_HEAD(lazy_opp_tables);
34-
3532
/* Lock to allow exclusive modification to the device and opp lists */
3633
DEFINE_MUTEX(opp_table_lock);
3734
/* Flag indicating that opp_tables list is being updated at the moment */

drivers/opp/of.c

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@
2121

2222
#include "opp.h"
2323

24+
/* OPP tables with uninitialized required OPPs */
25+
static LIST_HEAD(lazy_opp_tables);
26+
2427
/*
2528
* Returns opp descriptor node for a device node, caller must
2629
* do of_node_put().

drivers/opp/opp.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ struct regulator;
2626
/* Lock to allow exclusive modification to the device and opp lists */
2727
extern struct mutex opp_table_lock;
2828

29-
extern struct list_head opp_tables, lazy_opp_tables;
29+
extern struct list_head opp_tables;
3030

3131
/* OPP Config flags */
3232
#define OPP_CONFIG_CLK BIT(0)

0 commit comments

Comments
 (0)