diff options
Diffstat (limited to 'arch/arm/mach-omap1/mailbox.c')
-rw-r--r-- | arch/arm/mach-omap1/mailbox.c | 14 |
1 files changed, 7 insertions, 7 deletions
diff --git a/arch/arm/mach-omap1/mailbox.c b/arch/arm/mach-omap1/mailbox.c index d3abf5609902..bad1e7152d8e 100644 --- a/arch/arm/mach-omap1/mailbox.c +++ b/arch/arm/mach-omap1/mailbox.c | |||
@@ -51,7 +51,7 @@ static inline void mbox_write_reg(unsigned int val, unsigned int reg) | |||
51 | } | 51 | } |
52 | 52 | ||
53 | /* msg */ | 53 | /* msg */ |
54 | static inline mbox_msg_t omap1_mbox_fifo_read(struct omap_mbox *mbox) | 54 | static mbox_msg_t omap1_mbox_fifo_read(struct omap_mbox *mbox) |
55 | { | 55 | { |
56 | struct omap_mbox1_fifo *fifo = | 56 | struct omap_mbox1_fifo *fifo = |
57 | &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; | 57 | &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; |
@@ -63,7 +63,7 @@ static inline mbox_msg_t omap1_mbox_fifo_read(struct omap_mbox *mbox) | |||
63 | return msg; | 63 | return msg; |
64 | } | 64 | } |
65 | 65 | ||
66 | static inline void | 66 | static void |
67 | omap1_mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg) | 67 | omap1_mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg) |
68 | { | 68 | { |
69 | struct omap_mbox1_fifo *fifo = | 69 | struct omap_mbox1_fifo *fifo = |
@@ -73,12 +73,12 @@ omap1_mbox_fifo_write(struct omap_mbox *mbox, mbox_msg_t msg) | |||
73 | mbox_write_reg(msg >> 16, fifo->cmd); | 73 | mbox_write_reg(msg >> 16, fifo->cmd); |
74 | } | 74 | } |
75 | 75 | ||
76 | static inline int omap1_mbox_fifo_empty(struct omap_mbox *mbox) | 76 | static int omap1_mbox_fifo_empty(struct omap_mbox *mbox) |
77 | { | 77 | { |
78 | return 0; | 78 | return 0; |
79 | } | 79 | } |
80 | 80 | ||
81 | static inline int omap1_mbox_fifo_full(struct omap_mbox *mbox) | 81 | static int omap1_mbox_fifo_full(struct omap_mbox *mbox) |
82 | { | 82 | { |
83 | struct omap_mbox1_fifo *fifo = | 83 | struct omap_mbox1_fifo *fifo = |
84 | &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; | 84 | &((struct omap_mbox1_priv *)mbox->priv)->rx_fifo; |
@@ -87,21 +87,21 @@ static inline int omap1_mbox_fifo_full(struct omap_mbox *mbox) | |||
87 | } | 87 | } |
88 | 88 | ||
89 | /* irq */ | 89 | /* irq */ |
90 | static inline void | 90 | static void |
91 | omap1_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) | 91 | omap1_mbox_enable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) |
92 | { | 92 | { |
93 | if (irq == IRQ_RX) | 93 | if (irq == IRQ_RX) |
94 | enable_irq(mbox->irq); | 94 | enable_irq(mbox->irq); |
95 | } | 95 | } |
96 | 96 | ||
97 | static inline void | 97 | static void |
98 | omap1_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) | 98 | omap1_mbox_disable_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) |
99 | { | 99 | { |
100 | if (irq == IRQ_RX) | 100 | if (irq == IRQ_RX) |
101 | disable_irq(mbox->irq); | 101 | disable_irq(mbox->irq); |
102 | } | 102 | } |
103 | 103 | ||
104 | static inline int | 104 | static int |
105 | omap1_mbox_is_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) | 105 | omap1_mbox_is_irq(struct omap_mbox *mbox, omap_mbox_type_t irq) |
106 | { | 106 | { |
107 | if (irq == IRQ_TX) | 107 | if (irq == IRQ_TX) |