[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <20090511213755.GB21232@elte.hu>
Date: Mon, 11 May 2009 23:37:55 +0200
From: Ingo Molnar <mingo@...e.hu>
To: Yinghai Lu <yinghai@...nel.org>
Cc: Thomas Gleixner <tglx@...utronix.de>,
"H. Peter Anvin" <hpa@...or.com>,
Andrew Morton <akpm@...ux-foundation.org>,
Jesse Barnes <jbarnes@...tuousgeek.org>,
Len Brown <lenb@...nel.org>,
"linux-kernel@...r.kernel.org" <linux-kernel@...r.kernel.org>,
linux-pci@...r.kernel.org,
ACPI Devel Maling List <linux-acpi@...r.kernel.org>
Subject: Re: [PATCH 5/7] x86/pci: add 4 more return param in
IO_APIC_get_PCI_irq_vector
* Yinghai Lu <yinghai@...nel.org> wrote:
> @@ -1198,6 +1198,7 @@ int mp_register_gsi(struct device *dev,
> {
> int ioapic;
> int ioapic_pin;
> + struct io_apic_irq_attr io_apic_irq;
please call the variable name 'irq_attr' or so.
> + io_apic_irq.ioapic = ioapic;
> + io_apic_irq.ioapic_pin = ioapic_pin;
> + io_apic_irq.trigger = (triggering == ACPI_EDGE_SENSITIVE ? 0 : 1);
> + io_apic_irq.polarity = (polarity == ACPI_ACTIVE_HIGH ? 0 : 1);
> + io_apic_set_pci_routing(dev, gsi, &io_apic_irq);
I think we've been through this before :-/ Doesnt this:
io_apic_irq.ioapic = ioapic;
io_apic_irq.ioapic_pin = ioapic_pin;
io_apic_irq.trigger = (triggering == ACPI_EDGE_SENSITIVE ? 0 : 1);
io_apic_irq.polarity = (polarity == ACPI_ACTIVE_HIGH ? 0 : 1);
Look nicer?
Also, please do s/triggering/trigger
Thanks,
Ingo
--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists