pass regulators_info parameter to show_regulator_info
The show_regulator_info function does no longer rely on the
global regulators_info variable.
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 a8e98c9..15194da 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -264,7 +264,7 @@
regulator_read_info(regulators_info);
if (!options->dump) {
create_selectedwindow(options->selectedwindow);
- show_regulator_info(options->verbose);
+ show_regulator_info(regulators_info, options->verbose);
}
else
regulator_print_info(regulators_info, options->verbose);