From ee851a1e8df5d777219d51fd285efe53e8e71d18 Mon Sep 17 00:00:00 2001 From: Amit Kucheria Date: Wed, 12 Jan 2011 04:57:48 +0530 Subject: Make the clock tab the first tab Change the order of the tabs - Clock, regulator, sensors --- powerdebug.c | 7 ++++--- powerdebug.h | 2 +- 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; -- cgit v1.2.1