spi: altera_spi: Do not abuse CONFIG namespace
PATCH 1/1 spi: altera_spi: Do not abuse CONFIG namespace
The value CONFIG_ALTERA_SPI_IDLE_VAL is never re-defined by a board. Rename this to ALTERA_SPI_IDLE_VAL.
Signed-off-by Tom Rini <[email protected]>
--- drivers/spi/altera_spi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
drivers/spi/altera_spi.c +2 -4
@@ -19,9 +19,7 @@#define ALTERA_SPI_STATUS_RRDY_MSK BIT(7)#define ALTERA_SPI_CONTROL_SSO_MSK BIT(10) -#ifndef CONFIG_ALTERA_SPI_IDLE_VAL -#define CONFIG_ALTERA_SPI_IDLE_VAL 0xff -#endif +#define ALTERA_SPI_IDLE_VAL 0xffstruct altera_spi_regs {u32 rxdata;
@@ -119,7 +117,7 @@ static int altera_spi_xfer(struct udevice *dev, unsigned int bitlen,if (txp) data = *txp++;else - data =CONFIG_ALTERA_SPI_IDLE_VAL ; + data =ALTERA_SPI_IDLE_VAL ;debug ("%s: tx:%x " , __func__, data);writel (data, ®s->txdata);
Signature · 1 line
2.17.1
Quoted 9 lines · Tom Rini
The value
CONFIG_ALTERA_SPI_IDLE_VALis never re-defined by a board. Rename this toALTERA_SPI_IDLE_VAL.Signed-off-by Tom Rini <[email protected]>--- drivers/spi/altera_spi.c | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-)
Reviewed-by Bin Meng <[email protected]>
Quoted 5 lines · Tom Rini
The value
CONFIG_ALTERA_SPI_IDLE_VALis never re-defined by a board. Rename this toALTERA_SPI_IDLE_VAL.Signed-off-by Tom Rini <[email protected]>Reviewed-by Bin Meng <[email protected]>
Applied to u-boot/next, thanks!
Signature · 1 line
Tom