aboutsummaryrefslogtreecommitdiff
path: root/clocks.c
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-15 15:45:12 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-15 15:45:12 +0200
commitb3e6e818f30f61f2f80ecc19e4d37f9d9092e831 (patch)
treeee9b0609b3d429bd05909854f7ac1d9a61b82e65 /clocks.c
parent88b38e388fc20499eff99bb7282fccdb481f8828 (diff)
make all pm block own their display data
That allows to keep track of the different selections from the different windows. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'clocks.c')
-rw-r--r--clocks.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/clocks.c b/clocks.c
index 4d78910..c86a39e 100644
--- a/clocks.c
+++ b/clocks.c
@@ -163,15 +163,15 @@ void find_parents_for_clock(char *clkname, int complete)
strcat(name, clkname);
sprintf(str, "Enter Clock Name : %s\n", name);
- display_reset_cursor();
- display_print_line(0, str, 1, NULL);
- display_refresh_pad();
+ display_reset_cursor(CLOCK);
+ display_print_line(CLOCK, 0, str, 1, NULL);
+ display_refresh_pad(CLOCK);
return;
}
sprintf(name, "Parents for \"%s\" Clock : \n", clkname);
- display_reset_cursor();
- display_print_line(0, name, 1, NULL);
- display_refresh_pad();
+ display_reset_cursor(CLOCK);
+ display_print_line(CLOCK, 0, name, 1, NULL);
+ display_refresh_pad(CLOCK);
dump_all_parents(clkname);
}
@@ -271,7 +271,7 @@ static int clock_print_info_cb(struct tree *t, void *data)
if (!buffer)
return -1;
- display_print_line(*line, buffer, clock->usecount, t);
+ display_print_line(CLOCK, *line, buffer, clock->usecount, t);
(*line)++;
@@ -286,18 +286,18 @@ static int clock_print_info(void)
print_clock_header();
- display_reset_cursor();
+ display_reset_cursor(CLOCK);
ret = tree_for_each(clock_tree, clock_print_info_cb, &line);
- display_refresh_pad();
+ display_refresh_pad(CLOCK);
return ret;
}
int clock_toggle_expanded(void)
{
- struct tree *t = display_get_row_data();
+ struct tree *t = display_get_row_data(CLOCK);
struct clock_info *clk = t->private;
clk->expanded = !clk->expanded;