pass regulators_info parameter to regulator_read_info
The regulator_read_info function does no longer rely on the regulators_info
global 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 5f23e0c..a8e98c9 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -261,7 +261,7 @@
}
if (options->regulators || options->selectedwindow == REGULATOR) {
- regulator_read_info();
+ regulator_read_info(regulators_info);
if (!options->dump) {
create_selectedwindow(options->selectedwindow);
show_regulator_info(options->verbose);