Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311863
b: refs/heads/master
c: b330f85
h: refs/heads/master
i:
  311861: f766ac9
  311859: a8a306c
  311855: 044b23c
v: v3
  • Loading branch information
Graeme Gregory authored and Samuel Ortiz committed Jul 8, 2012
1 parent 040ad42 commit 2a91d65
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: adc20e02aefa83d95829cdeb1152ff641adcc779
refs/heads/master: b330f85d3d42cbe091736a0abd8f005b448d133a
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 2a91d65

Please sign in to comment.