aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-08 23:30:00 +0200
committerDaniel Lezcano <daniel.lezcano@free.fr>2011-06-08 23:30:00 +0200
commitc45662bcfc89bd7f7ebaa9d325ce92ec83d39882 (patch)
tree9a6725aba63cfbc88ff06c69eb8284a108b4ba77
parent2ef06e969eb9674b55d1b9704587505ed0e8198e (diff)
downloadpowerdebug-c45662bcfc89bd7f7ebaa9d325ce92ec83d39882.tar.gz
move clock_info structure definition
Let's make this structure private Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
-rw-r--r--clocks.c13
-rw-r--r--clocks.h13
2 files changed, 13 insertions, 13 deletions
diff --git a/clocks.c b/clocks.c
index 3a93421..4d8a2be 100644
--- a/clocks.c
+++ b/clocks.c
@@ -28,6 +28,19 @@ static char clock_lines[MAX_LINES][128];
static int clock_line_no;
static int old_clock_line_no;
+struct clock_info {
+ char name[NAME_MAX];
+ int flags;
+ int rate;
+ int usecount;
+ int num_children;
+ int last_child;
+ int expanded;
+ int level;
+ struct clock_info *parent;
+ struct clock_info **children;
+} *clocks_info;
+
static int locate_debugfs(char *clk_path)
{
const char *mtab = "/proc/mounts";
diff --git a/clocks.h b/clocks.h
index 9ad9804..d66c061 100644
--- a/clocks.h
+++ b/clocks.h
@@ -15,17 +15,4 @@
extern int maxy;
-struct clock_info {
- char name[NAME_MAX];
- int flags;
- int rate;
- int usecount;
- int num_children;
- int last_child;
- int expanded;
- int level;
- struct clock_info *parent;
- struct clock_info **children;
-} *clocks_info;
-
extern int clock_init(void);