On Mon, Nov 12, 2012 at 01:00:26PM +0100, Rafael J. Wysocki wrote: > +/** > + * acpi_dev_irq_flags - Determine IRQ resource flags. > + * @triggering: Triggering type as provided by ACPI. > + * @polarity: Interrupt polarity as provided by ACPI. > + * @shareable: Whether or not the interrupt is shareable. > + */ > +unsigned long acpi_dev_irq_flags(u8 triggering, u8 polarity, u8 shareable) > +{ > + unsigned long flags = IORESOURCE_IRQ; > + > + if (triggering == ACPI_LEVEL_SENSITIVE) > + flags = polarity == ACPI_ACTIVE_LOW ? > + IORESOURCE_IRQ_LOWLEVEL : IORESOURCE_IRQ_HIGHLEVEL; This wants to have '|=' instead of '='. > + else > + flags = polarity == ACPI_ACTIVE_LOW ? > + IORESOURCE_IRQ_LOWEDGE : IORESOURCE_IRQ_HIGHEDGE; Ditto. > + > + if (shareable == ACPI_SHARED) > + flags |= IORESOURCE_IRQ_SHAREABLE; > + > + return flags; > +} > +EXPORT_SYMBOL_GPL(acpi_dev_irq_flags); -- To unsubscribe from this list: send the line "unsubscribe linux-acpi" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html