Skip to content

Commit 6979e8b

Browse files
glneoJassi Brar
authored andcommitted
mailbox: omap: Move omap_mbox_irq_t into driver
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 <[email protected]> Signed-off-by: Jassi Brar <[email protected]>
1 parent 6faf89a commit 6979e8b

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

drivers/mailbox/omap-mailbox.c

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@
5151
#define MBOX_INTR_CFG_TYPE1 0
5252
#define MBOX_INTR_CFG_TYPE2 1
5353

54+
typedef enum {
55+
IRQ_TX = 1,
56+
IRQ_RX = 2,
57+
} omap_mbox_irq_t;
58+
5459
struct omap_mbox_fifo {
5560
unsigned long msg;
5661
unsigned long fifo_stat;

include/linux/omap-mailbox.h

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,4 @@ typedef uintptr_t mbox_msg_t;
1010

1111
#define omap_mbox_message(data) (u32)(mbox_msg_t)(data)
1212

13-
typedef int __bitwise omap_mbox_irq_t;
14-
#define IRQ_TX ((__force omap_mbox_irq_t) 1)
15-
#define IRQ_RX ((__force omap_mbox_irq_t) 2)
16-
1713
#endif /* OMAP_MAILBOX_H */

0 commit comments

Comments
 (0)