irq: rename irq_connect() to IRQ_CONNECT()
It's not a function and requires all its arguments to be build-time constants. Make this more obvious to the end user to ease confusion. Change-Id: I64107cf4d9db9f0e853026ce78e477060570fe6f Signed-off-by: Andrew Boie <andrew.p.boie@intel.com>
This commit is contained in:
parent
a4ec963138
commit
897ffaeb2c
35 changed files with 64 additions and 68 deletions
|
@ -206,7 +206,7 @@ DEVICE_INIT(rtc, CONFIG_RTC_DRV_NAME, &rtc_dw_init,
|
|||
|
||||
int rtc_dw_init(struct device *dev)
|
||||
{
|
||||
irq_connect(CONFIG_RTC_IRQ, CONFIG_RTC_IRQ_PRI, rtc_dw_isr,
|
||||
IRQ_CONNECT(CONFIG_RTC_IRQ, CONFIG_RTC_IRQ_PRI, rtc_dw_isr,
|
||||
DEVICE_GET(rtc), 0);
|
||||
irq_enable(CONFIG_RTC_IRQ);
|
||||
|
||||
|
|
|
@ -79,7 +79,7 @@ static struct rtc_driver_api api = {
|
|||
|
||||
static int rtc_qmsi_init(struct device *dev)
|
||||
{
|
||||
irq_connect(CONFIG_RTC_IRQ, CONFIG_RTC_IRQ_PRI, qm_rtc_isr_0, 0,
|
||||
IRQ_CONNECT(CONFIG_RTC_IRQ, CONFIG_RTC_IRQ_PRI, qm_rtc_isr_0, 0,
|
||||
IOAPIC_EDGE | IOAPIC_HIGH);
|
||||
|
||||
/* Unmask RTC interrupt */
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue