Reduce the scope of the numregulators to powerdebug.c
Signed-off-by: Daniel Lezcano <[email protected]>
---
powerdebug.c | 1 +
powerdebug.h | 2 --
regulator.h | 2 --
3 files changed, 1 insertions(+), 4 deletions(-)
diff --git a/powerdebug.c b/powerdebug.c
index 6e9e896..6dd4b8c 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -21,6 +21,7 @@
int highlighted_row;
static struct regulator_info *regulators_info;
+static int numregulators;
void usage(void)
{
diff --git a/powerdebug.h b/powerdebug.h
index 3c4f1e8..7ec7d96 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -28,8 +28,6 @@
enum {CLOCK, REGULATOR, SENSOR};
enum {CLOCK_SELECTED = 1, REFRESH_WINDOW};
-extern int numregulators;
-
extern void read_and_dump_clock_info(int verbose);
extern void read_and_dump_clock_info_one(char *clk, bool dump);
extern void read_clock_info(char *clkpath);
diff --git a/regulator.h b/regulator.h
index 8781f36..1633cfd 100644
--- a/regulator.h
+++ b/regulator.h
@@ -22,8 +22,6 @@
#define VALUE_MAX 16
-int numregulators;
-
struct regulator_info {
char name[NAME_MAX];
char state[VALUE_MAX];
--
1.7.1
_______________________________________________
linaro-dev mailing list
[email protected]
http://lists.linaro.org/mailman/listinfo/linaro-dev