ARM at91: remove const
Although the spi chipselects should really be const, there is no good way to fix the compiler warning, so remove the const. Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
This commit is contained in:
parent
2f1d3b49d1
commit
bc1932b201
|
@ -159,7 +159,7 @@ void __init at91_add_device_nand(struct atmel_nand_data *data) {}
|
|||
* -------------------------------------------------------------------- */
|
||||
|
||||
#if defined(CONFIG_DRIVER_SPI_ATMEL)
|
||||
static const unsigned spi_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 };
|
||||
static unsigned spi_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 };
|
||||
|
||||
static struct at91_spi_platform_data spi_pdata[] = {
|
||||
[0] = {
|
||||
|
|
|
@ -107,9 +107,9 @@ void at91_add_device_nand(struct atmel_nand_data *data) {}
|
|||
* -------------------------------------------------------------------- */
|
||||
|
||||
#if defined(CONFIG_DRIVER_SPI_ATMEL)
|
||||
static const unsigned spi0_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 };
|
||||
static unsigned spi0_standard_cs[4] = { AT91_PIN_PA3, AT91_PIN_PA4, AT91_PIN_PA5, AT91_PIN_PA6 };
|
||||
|
||||
static const unsigned spi1_standard_cs[4] = { AT91_PIN_PB28, AT91_PIN_PA24, AT91_PIN_PA25, AT91_PIN_PA26 };
|
||||
static unsigned spi1_standard_cs[4] = { AT91_PIN_PB28, AT91_PIN_PA24, AT91_PIN_PA25, AT91_PIN_PA26 };
|
||||
|
||||
static struct at91_spi_platform_data spi_pdata[] = {
|
||||
[0] = {
|
||||
|
|
Loading…
Reference in New Issue