aboutsummaryrefslogtreecommitdiff
path: root/display.h
diff options
context:
space:
mode:
authorDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-21 00:57:08 +0200
committerDaniel Lezcano <daniel.lezcano@linaro.org>2011-06-21 00:57:08 +0200
commitd577aaaffc5398ae59558e888071e8214c6cd852 (patch)
tree50640984286b92b2f359f7e665d68aabd6468aca /display.h
parent73b400238f53a18c4d35b7ba9a7de7dd26755035 (diff)
downloadpowerdebug-d577aaaffc5398ae59558e888071e8214c6cd852.tar.gz
Optimize the code
With this patch the content of the debugfs file is readen only when the 'refresh' button is hit and at the init of powerdebug. Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org>
Diffstat (limited to 'display.h')
-rw-r--r--display.h3
1 files changed, 1 insertions, 2 deletions
diff --git a/display.h b/display.h
index 7fa5361..9e4e21a 100644
--- a/display.h
+++ b/display.h
@@ -16,7 +16,7 @@
enum { CLOCK, REGULATOR, SENSOR };
struct display_ops {
- int (*display)(void);
+ int (*display)(bool refresh);
int (*select)(void);
int (*find)(const char *);
int (*selectf)(void);
@@ -31,5 +31,4 @@ extern void *display_get_row_data(int window);
extern int display_init(int wdefault);
extern int display_register(int win, struct display_ops *ops);
-extern int display_refresh(int win);
extern int display_column_name(const char *line);