projects
/
platform
/
upstream
/
kernel-adaptation-pc.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
47885ce
)
spi/bfin_spi: constify pin array
author
Mike Frysinger
<vapier@gentoo.org>
Fri, 17 Jun 2011 08:16:57 +0000
(
04:16
-0400)
committer
Grant Likely
<grant.likely@secretlab.ca>
Fri, 17 Jun 2011 14:35:57 +0000
(08:35 -0600)
This array isn't written anywhere, so constify it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
Signed-off-by: Grant Likely <grant.likely@secretlab.ca>
drivers/spi/spi-bfin5xx.c
patch
|
blob
|
history
diff --git
a/drivers/spi/spi-bfin5xx.c
b/drivers/spi/spi-bfin5xx.c
index
7331831
..
ca421c4
100644
(file)
--- a/
drivers/spi/spi-bfin5xx.c
+++ b/
drivers/spi/spi-bfin5xx.c
@@
-965,7
+965,7
@@
static int bfin_spi_transfer(struct spi_device *spi, struct spi_message *msg)
#define MAX_SPI_SSEL 7
-static u16 ssel[][MAX_SPI_SSEL] = {
+static
const
u16 ssel[][MAX_SPI_SSEL] = {
{P_SPI0_SSEL1, P_SPI0_SSEL2, P_SPI0_SSEL3,
P_SPI0_SSEL4, P_SPI0_SSEL5,
P_SPI0_SSEL6, P_SPI0_SSEL7},