diff options
author | Uwe Kleine-König <u.kleine-koenig@pengutronix.de> | 2012-03-30 16:13:53 -0400 |
---|---|---|
committer | Sekhar Nori <nsekhar@ti.com> | 2012-04-18 16:20:30 -0400 |
commit | d65566e50b35165c5d89cd6ea5049662ae6da43b (patch) | |
tree | 3dcd5f4c2450748d176d89a0d280f8aad3779803 /arch/arm/mach-davinci/dm365.c | |
parent | 4a6e6a5eb3f8309273b389ca74538f65af203f6c (diff) |
ARM: davinci: mark spi_board_info arguments as const
spi_board_info is not modified in any of the spi registeration
functions and passed along as-is to the generic SPI layer.
Mark spi_board_info arguments as const to signal this.
Signed-off-by: Uwe Kleine-König <u.kleine-koenig@pengutronix.de>
[nsekhar@ti.com: extended for dm365 and dm355]
Signed-off-by: Sekhar Nori <nsekhar@ti.com>
Diffstat (limited to 'arch/arm/mach-davinci/dm365.c')
-rw-r--r-- | arch/arm/mach-davinci/dm365.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/arch/arm/mach-davinci/dm365.c b/arch/arm/mach-davinci/dm365.c index 1a2e953082b3..a50d49de1883 100644 --- a/arch/arm/mach-davinci/dm365.c +++ b/arch/arm/mach-davinci/dm365.c | |||
@@ -676,7 +676,7 @@ static struct platform_device dm365_spi0_device = { | |||
676 | }; | 676 | }; |
677 | 677 | ||
678 | void __init dm365_init_spi0(unsigned chipselect_mask, | 678 | void __init dm365_init_spi0(unsigned chipselect_mask, |
679 | struct spi_board_info *info, unsigned len) | 679 | const struct spi_board_info *info, unsigned len) |
680 | { | 680 | { |
681 | davinci_cfg_reg(DM365_SPI0_SCLK); | 681 | davinci_cfg_reg(DM365_SPI0_SCLK); |
682 | davinci_cfg_reg(DM365_SPI0_SDI); | 682 | davinci_cfg_reg(DM365_SPI0_SDI); |