aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAmit Kucheria <amit.kucheria@linaro.org>2011-01-12 04:57:48 +0530
committerAmit Kucheria <amit.kucheria@linaro.org>2011-01-12 04:57:48 +0530
commitee851a1e8df5d777219d51fd285efe53e8e71d18 (patch)
tree553648c60015924724eaee528118b75749701548
parent0a4d019e12ff334e2b8104329da73fcee52749cd (diff)
downloadpowerdebug-ee851a1e8df5d777219d51fd285efe53e8e71d18.tar.gz
Make the clock tab the first tab
Change the order of the tabs - Clock, regulator, sensors
-rw-r--r--powerdebug.c7
-rw-r--r--powerdebug.h2
2 files changed, 5 insertions, 4 deletions
diff --git a/powerdebug.c b/powerdebug.c
index 197f255..e12d917 100644
--- a/powerdebug.c
+++ b/powerdebug.c
@@ -23,9 +23,10 @@ int selectedwindow = -1;
double ticktime = 10.0; /* in seconds */
char *win_names[TOTAL_FEATURE_WINS] = {
- "Regulators",
"Clocks",
- "Sensors" };
+ "Regulators",
+ "Sensors"
+};
void usage(void)
{
@@ -156,7 +157,7 @@ int main(int argc, char **argv)
}
if (!dump && selectedwindow == -1)
- selectedwindow = REGULATOR;
+ selectedwindow = CLOCK;
init_regulator_ds();
diff --git a/powerdebug.h b/powerdebug.h
index f351ff2..ea1ad29 100644
--- a/powerdebug.h
+++ b/powerdebug.h
@@ -26,7 +26,7 @@
#define VERSION "1.0"
#define TOTAL_FEATURE_WINS 3 /* Regulator, Clock and Sensor (for now) */
-enum {REGULATOR, CLOCK, SENSOR};
+enum {CLOCK, REGULATOR, SENSOR};
enum {CLOCK_SELECTED = 1, REFRESH_WINDOW};
extern struct regulator_info *regulators_info;