mailbox: omap: Move omap_mbox_irq_t into driver
authorAndrew Davis <afd@ti.com>
Wed, 10 Apr 2024 13:59:32 +0000 (08:59 -0500)
committerJassi Brar <jassisinghbrar@gmail.com>
Mon, 20 May 2024 03:29:43 +0000 (22:29 -0500)
This is only used internal to the driver, move it out of the
public header and into the driver file. While we are here,
this is not used as a bitwise, so drop that and make it a
simple enum type.

Signed-off-by: Andrew Davis <afd@ti.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>
drivers/mailbox/omap-mailbox.c
include/linux/omap-mailbox.h

index 8151722eef383481c44e778250424844b326c8e8..c083734b6954cba7625e07e5d91e9f5d18f45ede 100644 (file)
 #define MBOX_INTR_CFG_TYPE1            0
 #define MBOX_INTR_CFG_TYPE2            1
 
+typedef enum {
+       IRQ_TX = 1,
+       IRQ_RX = 2,
+} omap_mbox_irq_t;
+
 struct omap_mbox_fifo {
        unsigned long msg;
        unsigned long fifo_stat;
index f8ddf8e8141675b6b8cf29c205cac61d13d82ad4..3cc5c4ed7f5a671908120557d1818b8d93c39ff9 100644 (file)
@@ -10,8 +10,4 @@ typedef uintptr_t mbox_msg_t;
 
 #define omap_mbox_message(data) (u32)(mbox_msg_t)(data)
 
-typedef int __bitwise omap_mbox_irq_t;
-#define IRQ_TX ((__force omap_mbox_irq_t) 1)
-#define IRQ_RX ((__force omap_mbox_irq_t) 2)
-
 #endif /* OMAP_MAILBOX_H */