Message ID | 1308298618-23461-3-git-send-email-vapier@gentoo.org (mailing list archive) |
---|---|
State | Superseded, archived |
Headers | show |
On Fri, Jun 17, 2011 at 04:16:57AM -0400, Mike Frysinger wrote: > This array isn't written anywhere, so constify it. > > Signed-off-by: Mike Frysinger <vapier@gentoo.org> Applied, thanks. g. > --- > drivers/spi/spi_bfin5xx.c | 2 +- > 1 files changed, 1 insertions(+), 1 deletions(-) > > diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c > index 8822bcc..32d900d 100644 > --- a/drivers/spi/spi_bfin5xx.c > +++ b/drivers/spi/spi_bfin5xx.c > @@ -964,7 +964,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}, > -- > 1.7.5.3 > ------------------------------------------------------------------------------ EditLive Enterprise is the world's most technically advanced content authoring tool. Experience the power of Track Changes, Inline Image Editing and ensure content is compliant with Accessibility Checking. http://p.sf.net/sfu/ephox-dev2dev
diff --git a/drivers/spi/spi_bfin5xx.c b/drivers/spi/spi_bfin5xx.c index 8822bcc..32d900d 100644 --- a/drivers/spi/spi_bfin5xx.c +++ b/drivers/spi/spi_bfin5xx.c @@ -964,7 +964,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},
This array isn't written anywhere, so constify it. Signed-off-by: Mike Frysinger <vapier@gentoo.org> --- drivers/spi/spi_bfin5xx.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)