@@ -332,7 +332,7 @@ int clock_init(void)
* found in the files. Then print the result to the text based interface
* Return 0 on success, < 0 otherwise
*/
-int read_and_print_clock_info(void)
+int clock_display(void)
{
if (read_clock_info())
return -1;
@@ -346,7 +346,7 @@ int read_and_print_clock_info(void)
* @clk : a name for a specific clock we want to show
* Return 0 on success, < 0 otherwise
*/
-int read_and_dump_clock_info(char *clk)
+int clock_dump(char *clk)
{
int ret;
@@ -13,6 +13,6 @@
* - initial API and implementation
*******************************************************************************/
-extern int maxy;
-
extern int clock_init(void);
+extern int clock_display(void);
+extern int clock_dump(char *clk);
@@ -19,6 +19,7 @@
#include "regulator.h"
#include "display.h"
#include "clocks.h"
+#include "sensor.h"
#include "powerdebug.h"
void usage(void)
@@ -275,7 +276,7 @@ int mainloop(struct powerdebug_options *options)
if (enter_hit)
clock_toggle_expanded();
- read_and_print_clock_info();
+ clock_display();
enter_hit = false;
} else
find_parents_for_clock(clkname_str,
@@ -317,7 +318,7 @@ static int powerdebug_dump(struct powerdebug_options *options)
regulator_dump();
if (options->clocks)
- read_and_dump_clock_info(options->clkname);
+ clock_dump(options->clkname);
if (options->sensors)
sensor_dump();
@@ -13,3 +13,6 @@
* - initial API and implementation
*******************************************************************************/
+extern int sensor_dump(void);
+extern int sensor_display(void);
+extern int sensor_init(void);
Signed-off-by: Daniel Lezcano <daniel.lezcano@linaro.org> --- clocks.c | 4 ++-- clocks.h | 4 ++-- powerdebug.c | 5 +++-- sensor.h | 3 +++ 4 files changed, 10 insertions(+), 6 deletions(-)