mirror of
https://xff.cz/git/u-boot/
synced 2025-09-02 09:12:08 +02:00
spi: fsl: Use BIT macro
Replace numerical bit shift with BIT macro in fsl_*spi.c :%s/(1 << nr)/BIT(nr)/g where nr = 0, 1, 2 .... 31 Cc: York Sun <yorksun@freescale.com> Cc: Haikun Wang <Haikun.Wang@freescale.com> Reviewed-by: Tom Rini <trini@konsulko.com> Signed-off-by: Jagan Teki <jteki@openedev.com>
This commit is contained in:
@@ -24,7 +24,7 @@
|
||||
DECLARE_GLOBAL_DATA_PTR;
|
||||
|
||||
/* fsl_dspi_platdata flags */
|
||||
#define DSPI_FLAG_REGMAP_ENDIAN_BIG (1 << 0)
|
||||
#define DSPI_FLAG_REGMAP_ENDIAN_BIG BIT(0)
|
||||
|
||||
/* idle data value */
|
||||
#define DSPI_IDLE_VAL 0x0
|
||||
|
Reference in New Issue
Block a user