projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1a9e5bf
)
Blackfin: bf54x: constify pint register array
author
Mike Frysinger
<vapier@gentoo.org>
Sun, 26 Jun 2011 16:48:52 +0000
(12:48 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 23 Jul 2011 05:18:24 +0000
(
01:18
-0400)
The array of pointers to register blocks never changes, so constify it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/mach-common/ints-priority.c
patch
|
blob
|
history
diff --git
a/arch/blackfin/mach-common/ints-priority.c
b/arch/blackfin/mach-common/ints-priority.c
index 1177369f9922533f839b5a02091506384a8addd4..132e701cfd5fd17ae45e13c36674dec77fc4ba9d 100644
(file)
--- a/
arch/blackfin/mach-common/ints-priority.c
+++ b/
arch/blackfin/mach-common/ints-priority.c
@@
-660,7
+660,7
@@
struct pin_int_t {
unsigned int latch;
};
-static struct pin_int_t *pint[NR_PINT_SYS_IRQS] = {
+static struct pin_int_t *
const
pint[NR_PINT_SYS_IRQS] = {
(struct pin_int_t *)PINT0_MASK_SET,
(struct pin_int_t *)PINT1_MASK_SET,
(struct pin_int_t *)PINT2_MASK_SET,