pass numregulators parameter to regulator_print_info
The regulator_print_info does no longer rely on the numregulators 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 7d91845..d310d5c 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -269,7 +269,8 @@
show_regulator_info(regulators_info, options->verbose);
}
else
- regulator_print_info(regulators_info, options->verbose);
+ regulator_print_info(regulators_info, numregulators,
+ options->verbose);
}
if (options->clocks || options->selectedwindow == CLOCK) {