Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 296826
b: refs/heads/master
c: 450b115
h: refs/heads/master
v: v3
  • Loading branch information
Paul Parsons authored and Samuel Ortiz committed Mar 6, 2012
1 parent 4238fa0 commit 4085172
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: edcf3196e9e646acc88d53e3bf355a6975daf109
refs/heads/master: 450b1151065ae967583fe69c82c50140560a5681
6 changes: 6 additions & 0 deletions trunk/drivers/mfd/asic3.c
Original file line number Diff line number Diff line change
Expand Up @@ -525,6 +525,11 @@ static void asic3_gpio_set(struct gpio_chip *chip,
return;
}

static int asic3_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
{
return (offset < ASIC3_NUM_GPIOS) ? IRQ_BOARD_START + offset : -ENXIO;
}

static __init int asic3_gpio_probe(struct platform_device *pdev,
u16 *gpio_config, int num)
{
Expand Down Expand Up @@ -976,6 +981,7 @@ static int __init asic3_probe(struct platform_device *pdev)
asic->gpio.set = asic3_gpio_set;
asic->gpio.direction_input = asic3_gpio_direction_input;
asic->gpio.direction_output = asic3_gpio_direction_output;
asic->gpio.to_irq = asic3_gpio_to_irq;

ret = asic3_gpio_probe(pdev,
pdata->gpio_config,
Expand Down

0 comments on commit 4085172

Please sign in to comment.