diff options
author | Paul Walmsley <paul@pwsan.com> | 2009-12-09 00:33:12 +0100 |
---|---|---|
committer | paul <paul@twilight.(none)> | 2009-12-12 01:00:41 +0100 |
commit | 2354eb5a943e64c5e6e249147381e9715aa5d54b (patch) | |
tree | 6341bf9adfb93f3a59a1476a7fc5254f24529bdd /arch/arm/plat-omap | |
parent | OMAP clockdomain/powerdomain: optimize out sleepdep code on OMAP24xx (diff) | |
download | linux-2354eb5a943e64c5e6e249147381e9715aa5d54b.tar.xz 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/plat-omap')
-rw-r--r-- | arch/arm/plat-omap/include/plat/powerdomain.h | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/arch/arm/plat-omap/include/plat/powerdomain.h b/arch/arm/plat-omap/include/plat/powerdomain.h index 3d45ee1d3cf4..5a80ddb4bb7e 100644 --- a/arch/arm/plat-omap/include/plat/powerdomain.h +++ b/arch/arm/plat-omap/include/plat/powerdomain.h @@ -28,6 +28,8 @@ #define PWRDM_POWER_INACTIVE 0x2 #define PWRDM_POWER_ON 0x3 +#define PWRDM_MAX_PWRSTS 4 + /* Powerdomain allowable state bitfields */ #define PWRSTS_OFF_ON ((1 << PWRDM_POWER_OFF) | \ (1 << PWRDM_POWER_ON)) @@ -118,11 +120,11 @@ struct powerdomain { struct list_head node; int state; - unsigned state_counter[4]; + unsigned state_counter[PWRDM_MAX_PWRSTS]; #ifdef CONFIG_PM_DEBUG s64 timer; - s64 state_timer[4]; + s64 state_timer[PWRDM_MAX_PWRSTS]; #endif }; |