Skip to content

Commit

Permalink
x86: ioapic: Remove useless inlines
Browse files Browse the repository at this point in the history
There is no point to have irq_trigger() and irq_polarity() as wrappers
around the MPBIOS_* camel case functions. Get rid of both the inlines
and the ugly camel case.

Signed-off-by: Thomas Gleixner <tglx@linutronix.de>
  • Loading branch information
Thomas Gleixner committed Feb 23, 2011
1 parent 41098ff commit b77cf6a
Showing 1 changed file with 2 additions and 12 deletions.
14 changes: 2 additions & 12 deletions arch/x86/kernel/apic/io_apic.c
Original file line number Diff line number Diff line change
Expand Up @@ -821,7 +821,7 @@ static int EISA_ELCR(unsigned int irq)
#define default_MCA_trigger(idx) (1)
#define default_MCA_polarity(idx) default_ISA_polarity(idx)

static int MPBIOS_polarity(int idx)
static int irq_polarity(int idx)
{
int bus = mp_irqs[idx].srcbus;
int polarity;
Expand Down Expand Up @@ -863,7 +863,7 @@ static int MPBIOS_polarity(int idx)
return polarity;
}

static int MPBIOS_trigger(int idx)
static int irq_trigger(int idx)
{
int bus = mp_irqs[idx].srcbus;
int trigger;
Expand Down Expand Up @@ -935,16 +935,6 @@ static int MPBIOS_trigger(int idx)
return trigger;
}

static inline int irq_polarity(int idx)
{
return MPBIOS_polarity(idx);
}

static inline int irq_trigger(int idx)
{
return MPBIOS_trigger(idx);
}

static int pin_2_irq(int idx, int apic, int pin)
{
int irq;
Expand Down

0 comments on commit b77cf6a

Please sign in to comment.