From: Jagan Teki Date: Tue, 27 Oct 2015 17:39:56 +0000 (+0530) Subject: spi: altera_spi: Use BIT macro X-Git-Tag: v2025.01-rc5-pxa1908~11364^2~1 X-Git-Url: http://git.dujemihanovic.xyz/img/sics.gif?a=commitdiff_plain;h=9c63d44e92e3c90080491ba4e61e36e39a20aea8;p=u-boot.git spi: altera_spi: Use BIT macro Replace numerical bit shift with BIT macro in altera_spi :%s/(1 << nr)/BIT(nr)/g where nr = 0, 1, 2 .... 31 Cc: Marek Vasut Acked-by: Thomas Chou Reviewed-by: Tom Rini Signed-off-by: Jagan Teki --- diff --git a/drivers/spi/altera_spi.c b/drivers/spi/altera_spi.c index ff3512a0f6..3dbcfaa4ca 100644 --- a/drivers/spi/altera_spi.c +++ b/drivers/spi/altera_spi.c @@ -38,8 +38,8 @@ struct altera_spi_priv { struct altera_spi_regs *regs; }; -#define ALTERA_SPI_STATUS_RRDY_MSK (1 << 7) -#define ALTERA_SPI_CONTROL_SSO_MSK (1 << 10) +#define ALTERA_SPI_STATUS_RRDY_MSK BIT(7) +#define ALTERA_SPI_CONTROL_SSO_MSK BIT(10) static void spi_cs_activate(struct udevice *dev, uint cs) {