diff options
author | Daniel Lezcano <daniel.lezcano@linaro.org> | 2011-06-21 00:57:08 +0200 |
---|---|---|
committer | Daniel Lezcano <daniel.lezcano@linaro.org> | 2011-06-21 00:57:08 +0200 |
commit | d577aaaffc5398ae59558e888071e8214c6cd852 (patch) | |
tree | 50640984286b92b2f359f7e665d68aabd6468aca /display.h | |
parent | 73b400238f53a18c4d35b7ba9a7de7dd26755035 (diff) |
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.h | 3 |
1 files changed, 1 insertions, 2 deletions
@@ -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); |