Reduce dump usage
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 7ef0a22..d337cc8 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -141,13 +141,21 @@
}
}
- if (options->dump && !(options->regulators ||
- options->clocks || options->sensors)) {
- /* By Default lets show everything we have */
- options->regulators = options->clocks = options->sensors = true;
+ if (options->dump) {
+
+ /* No system specified to be dump, let's default to all */
+ if (!options->regulators &&
+ !options->clocks &&
+ !options->sensors) {
+ options->regulators = options->clocks =
+ options->sensors = true;
+
+ return 0;
+ }
+
}
- if (!options->dump && options->selectedwindow == -1)
+ if (options->selectedwindow == -1)
options->selectedwindow = CLOCK;
return 0;