summaryrefslogtreecommitdiffstats
path: root/arch/arm/mach-omap2/pm-debug.c
diff options
context:
space:
mode:
authorPaul Walmsley2009-12-09 00:33:12 +0100
committerpaul2009-12-12 01:00:41 +0100
commit2354eb5a943e64c5e6e249147381e9715aa5d54b (patch)
tree6341bf9adfb93f3a59a1476a7fc5254f24529bdd /arch/arm/mach-omap2/pm-debug.c
parentOMAP clockdomain/powerdomain: optimize out sleepdep code on OMAP24xx (diff)
downloadkernel-qcow2-linux-2354eb5a943e64c5e6e249147381e9715aa5d54b.tar.gz
kernel-qcow2-linux-2354eb5a943e64c5e6e249147381e9715aa5d54b.tar.xz
kernel-qcow2-linux-2354eb5a943e64c5e6e249147381e9715aa5d54b.zip
OMAP powerdomain/PM: use symbolic constants for the max number of power states
Replace some bare constants with power states. Signed-off-by: Paul Walmsley <paul@pwsan.com> Cc: Kevin Hilman <khilman@deeprootsystems.com>
Diffstat (limited to 'arch/arm/mach-omap2/pm-debug.c')
-rw-r--r--arch/arm/mach-omap2/pm-debug.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/arch/arm/mach-omap2/pm-debug.c b/arch/arm/mach-omap2/pm-debug.c
index 8baa30d2acfb..860b755d2220 100644
--- a/arch/arm/mach-omap2/pm-debug.c
+++ b/arch/arm/mach-omap2/pm-debug.c
@@ -326,7 +326,7 @@ int pm_dbg_regset_save(int reg_set)
return 0;
}
-static const char pwrdm_state_names[][4] = {
+static const char pwrdm_state_names[][PWRDM_MAX_PWRSTS] = {
"OFF",
"RET",
"INA",
@@ -381,7 +381,7 @@ static int pwrdm_dbg_show_counter(struct powerdomain *pwrdm, void *user)
seq_printf(s, "%s (%s)", pwrdm->name,
pwrdm_state_names[pwrdm->state]);
- for (i = 0; i < 4; i++)
+ for (i = 0; i < PWRDM_MAX_PWRSTS; i++)
seq_printf(s, ",%s:%d", pwrdm_state_names[i],
pwrdm->state_counter[i]);