Skip to content

Commit

Permalink
spi/bfin_spi: constify pin array
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Mike Frysinger authored and Grant Likely committed Jun 17, 2011
1 parent 47885ce commit ddc0bf1
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion drivers/spi/spi-bfin5xx.c
Original file line number Diff line number Diff line change
Expand Up @@ -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},
Expand Down

0 comments on commit ddc0bf1

Please sign in to comment.