Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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 <afd@ti.com>
Signed-off-by: Jassi Brar <jassisinghbrar@gmail.com>

authored by

Andrew Davis and committed by
Jassi Brar
6979e8be 6faf89a8

+5 -4
+5
drivers/mailbox/omap-mailbox.c
··· 51 51 #define MBOX_INTR_CFG_TYPE1 0 52 52 #define MBOX_INTR_CFG_TYPE2 1 53 53 54 + typedef enum { 55 + IRQ_TX = 1, 56 + IRQ_RX = 2, 57 + } omap_mbox_irq_t; 58 + 54 59 struct omap_mbox_fifo { 55 60 unsigned long msg; 56 61 unsigned long fifo_stat;
-4
include/linux/omap-mailbox.h
··· 10 10 11 11 #define omap_mbox_message(data) (u32)(mbox_msg_t)(data) 12 12 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 - 17 13 #endif /* OMAP_MAILBOX_H */