projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
369d561
)
OMAP powerdomain/PM: use symbolic constants for the max number of power states
author
Paul Walmsley
<paul@pwsan.com>
Wed, 27 Jan 2010 03:13:01 +0000
(20:13 -0700)
committer
Paul Walmsley
<paul@pwsan.com>
Wed, 27 Jan 2010 03:13:01 +0000
(20:13 -0700)
Replace some bare constants with symbolic constants.
Signed-off-by: Paul Walmsley <paul@pwsan.com>
Cc: Kevin Hilman <khilman@deeprootsystems.com>
arch/arm/mach-omap2/powerdomain.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/arm/mach-omap2/powerdomain.c
b/arch/arm/mach-omap2/powerdomain.c
index 411361f97eda6d336cbce5ef56b737eb8ca09f40..df6446a9c3534456b27a82daa836484375e19604 100644
(file)
--- a/
arch/arm/mach-omap2/powerdomain.c
+++ b/
arch/arm/mach-omap2/powerdomain.c
@@
-122,7
+122,7
@@
static int _pwrdm_register(struct powerdomain *pwrdm)
list_add(&pwrdm->node, &pwrdm_list);
/* Initialize the powerdomain's state counter */
- for (i = 0; i <
4
; i++)
+ for (i = 0; i <
PWRDM_MAX_PWRSTS
; i++)
pwrdm->state_counter[i] = 0;
pwrdm_wait_transition(pwrdm);