diff options
author | Randall Spangler <rspangler@chromium.org> | 2011-12-19 13:36:18 -0800 |
---|---|---|
committer | Randall Spangler <rspangler@chromium.org> | 2011-12-19 13:48:05 -0800 |
commit | 84a286b1f49c25df1d44bbf87d748b20421f5521 (patch) | |
tree | cdfb346f7d5690921d96dc657bca4a07723321ff /chip/lm4/uart.c | |
parent | 117021278ca6a3069c7bb8c55868a2f40530ae1a (diff) | |
download | chrome-ec-84a286b1f49c25df1d44bbf87d748b20421f5521.tar.gz |
Use #defined constants for IRQ names
Signed-off-by: Randall Spangler <rspangler@chromium.org>
BUG=none
TEST=none
Change-Id: If07ac671cef6b9d0e9fe0a96bf04455a3d2626ff
Diffstat (limited to 'chip/lm4/uart.c')
-rw-r--r-- | chip/lm4/uart.c | 6 |
1 files changed, 2 insertions, 4 deletions
diff --git a/chip/lm4/uart.c b/chip/lm4/uart.c index 2ff4901d09..d9f86e9800 100644 --- a/chip/lm4/uart.c +++ b/chip/lm4/uart.c @@ -128,9 +128,7 @@ static void uart_0_interrupt(void) if (tx_buf_tail == tx_buf_head) LM4_UART_IM(0) &= ~0x20; } -/* TODO: can't use LM4_IRQ_UART0 constant because it messes with the - * DECLARE_IRQ() macro. */ -DECLARE_IRQ(5, uart_0_interrupt, 1); +DECLARE_IRQ(LM4_IRQ_UART0, uart_0_interrupt, 1); /* Interrupt handler for UART1 */ @@ -150,7 +148,7 @@ static void uart_1_interrupt(void) } } /* Must be same prio as LPC interrupt handler so they don't preempt */ -DECLARE_IRQ(6, uart_1_interrupt, 2); +DECLARE_IRQ(LM4_IRQ_UART1, uart_1_interrupt, 2); /* Configure GPIOs for the UART module. */ |