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.c b/powerdebug.c
index d705bb9..6e9e896 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -266,7 +266,8 @@
regulator_read_info(regulators_info, numregulators);
if (!options->dump) {
create_selectedwindow(options->selectedwindow);
- show_regulator_info(regulators_info, options->verbose);
+ show_regulator_info(regulators_info, numregulators,
+ options->verbose);
}
else
regulator_print_info(regulators_info, numregulators,