summaryrefslogtreecommitdiffstats
path: root/drivers/spi
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2011-06-17 04:16:57 -0400
committerGrant Likely <grant.likely@secretlab.ca>2011-06-17 08:35:57 -0600
commitddc0bf13d63715c2bce0fe8818fba12b82823283 (patch)
treee08f1aab72efee0f4f6e128dc5486c2ced36099f /drivers/spi
parent47885ce81c7498c015e6763303821ab6e8a6e2cc (diff)
downloadop-kernel-dev-ddc0bf13d63715c2bce0fe8818fba12b82823283.zip
op-kernel-dev-ddc0bf13d63715c2bce0fe8818fba12b82823283.tar.gz
spi/bfin_spi: constify pin array
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>
Diffstat (limited to 'drivers/spi')
-rw-r--r--drivers/spi/spi-bfin5xx.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/spi/spi-bfin5xx.c b/drivers/spi/spi-bfin5xx.c
index 7331831..ca421c4 100644
--- 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},
OpenPOWER on IntegriCloud