Simplify the mbox_msg_t type definition and the to_omap_mbox_msg macro to use the uintptr_t type that can scale better to both 32-bit and 64-bit platforms. Signed-off-by: Suman Anna <s-anna@ti.com>
@@ -6,13 +6,9 @@
#ifndef OMAP_MAILBOX_H
#define OMAP_MAILBOX_H
-#if defined(CONFIG_ARCH_K3)
-typedef u64 mbox_msg_t;
-#else
-typedef u32 mbox_msg_t;
-#endif
+typedef uintptr_t mbox_msg_t;
-#define to_omap_mbox_msg(data) (u32)(*(mbox_msg_t *)(&(data)))
+#define to_omap_mbox_msg(data) (u32)(mbox_msg_t)(data)
typedef int __bitwise omap_mbox_irq_t;
#define IRQ_TX ((__force omap_mbox_irq_t) 1)