Pass numregulators paramter to show_regulator_info
The show_regulator_info function does no longer depend no the
global variable numregulators.
Signed-off-by: Daniel Lezcano <daniel.lezcano@free.fr>
Signed-off-by: Amit Kucheria <amit.kucheria@linaro.org>
diff --git a/powerdebug.h b/powerdebug.h
index e92049a..3c4f1e8 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -58,4 +58,5 @@
extern void create_selectedwindow(int selectedwindow);
struct regulator_info;
-extern void show_regulator_info(struct regulator_info *reg_info, int verbose);
+extern void show_regulator_info(struct regulator_info *reg_info,
+ int nr_reg, int verbose);