aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@free.fr>2011-03-26 22:06:01 +0100
committerAmit Kucheria <amit.kucheria@linaro.org>2011-04-04 02:26:15 +0300
commita9fff863e30d715113fa5236163bd5713e9bedd0 (patch)
tree2e456fa8c9bbb68bf149518bc8fc3b5762ff1f6f
parent833b63a65ca488858122ac9a348eab3be52cd439 (diff)
downloadpowerdebug-a9fff863e30d715113fa5236163bd5713e9bedd0.tar.gz
make numregulators static in powerdebug.c
Reduce the scope of the numregulators to powerdebug.c Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr> Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
-rw-r--r--powerdebug.c1
-rw-r--r--powerdebug.h2
-rw-r--r--regulator.h2
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];