Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 64387
b: refs/heads/master
c: 4cec086
h: refs/heads/master
i:
  64385: c1f8e8f
  64383: 72c4e9e
v: v3
  • Loading branch information
Bjorn Helgaas authored and Len Brown committed Aug 24, 2007
1 parent 5205799 commit 3d92e35
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 1e0aa9ad721349781b728ec4226876247e3fd431
refs/heads/master: 4cec086b219224167c22dd020d3dd2d9220e1d98
11 changes: 4 additions & 7 deletions trunk/drivers/pnp/pnpacpi/rsparser.c
Original file line number Diff line number Diff line change
Expand Up @@ -34,20 +34,17 @@
*/
static int irq_flags(int triggering, int polarity)
{
int flag;

if (triggering == ACPI_LEVEL_SENSITIVE) {
if (polarity == ACPI_ACTIVE_LOW)
flag = IORESOURCE_IRQ_LOWLEVEL;
return IORESOURCE_IRQ_LOWLEVEL;
else
flag = IORESOURCE_IRQ_HIGHLEVEL;
return IORESOURCE_IRQ_HIGHLEVEL;
} else {
if (polarity == ACPI_ACTIVE_LOW)
flag = IORESOURCE_IRQ_LOWEDGE;
return IORESOURCE_IRQ_LOWEDGE;
else
flag = IORESOURCE_IRQ_HIGHEDGE;
return IORESOURCE_IRQ_HIGHEDGE;
}
return flag;
}

static void decode_irq_flags(int flag, int *triggering, int *polarity)
Expand Down

0 comments on commit 3d92e35

Please sign in to comment.