Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 319721
b: refs/heads/master
c: 54210c9
h: refs/heads/master
i:
  319719: 81062a0
v: v3
  • Loading branch information
Graeme Gregory authored and Samuel Ortiz committed Jul 8, 2012
1 parent bd542af commit c0eaf68
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 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: 56dbd61f297d8d645856f604536bcd856ab9060a
refs/heads/master: 54210c97c8bfff67a4c5ec09ff797543bf291d6b
9 changes: 8 additions & 1 deletion trunk/drivers/mfd/palmas.c
Original file line number Diff line number Diff line change
Expand Up @@ -356,7 +356,14 @@ static int __devinit palmas_i2c_probe(struct i2c_client *i2c,
}
}

ret = regmap_add_irq_chip(palmas->regmap[1], palmas->irq,
/* Change IRQ into clear on read mode for efficiency */
slave = PALMAS_BASE_TO_SLAVE(PALMAS_INTERRUPT_BASE);
addr = PALMAS_BASE_TO_REG(PALMAS_INTERRUPT_BASE, PALMAS_INT_CTRL);
reg = PALMAS_INT_CTRL_INT_CLEAR;

regmap_write(palmas->regmap[slave], addr, reg);

ret = regmap_add_irq_chip(palmas->regmap[slave], palmas->irq,
IRQF_ONESHOT | IRQF_TRIGGER_LOW, -1, &palmas_irq_chip,
&palmas->irq_data);
if (ret < 0)
Expand Down

0 comments on commit c0eaf68

Please sign in to comment.