[U-Boot] [PATCH 1/6] i2c: rcar_i2c: Fix u32 cast warnings
Ismael Luceno Cortes
ismael.luceno at silicon-gears.com
Mon Mar 4 14:19:01 UTC 2019
Signed-off-by: Ismael Luceno <ismael.luceno at silicon-gears.com>
---
drivers/i2c/rcar_i2c.c | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/drivers/i2c/rcar_i2c.c b/drivers/i2c/rcar_i2c.c
index 8d87c73713..bd7c37a207 100644
--- a/drivers/i2c/rcar_i2c.c
+++ b/drivers/i2c/rcar_i2c.c
@@ -34,9 +34,9 @@
#define RCAR_I2C_ICMSR_MNR BIT(6)
#define RCAR_I2C_ICMSR_MAL BIT(5)
#define RCAR_I2C_ICMSR_MST BIT(4)
-#define RCAR_I2C_ICMSR_MDE BIT(3)
+#define RCAR_I2C_ICMSR_MDE ((u32)BIT(3))
#define RCAR_I2C_ICMSR_MDT BIT(2)
-#define RCAR_I2C_ICMSR_MDR BIT(1)
+#define RCAR_I2C_ICMSR_MDR ((u32)BIT(1))
#define RCAR_I2C_ICMSR_MAT BIT(0)
#define RCAR_I2C_ICSIER 0x10
#define RCAR_I2C_ICMIER 0x14
--
2.19.1
More information about the U-Boot
mailing list