Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 193390
b: refs/heads/master
c: ddf438c
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown committed Apr 5, 2010
1 parent c51ea6c commit 83ab49b
Show file tree
Hide file tree
Showing 2 changed files with 13 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: c9fbf7e070bbf9cc7adc1420df87706c62cb04ed
refs/heads/master: ddf438cf2a6de9aa47783a45907e1188b9437ff7
12 changes: 12 additions & 0 deletions trunk/drivers/gpio/wm8994-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -80,6 +80,18 @@ static void wm8994_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset, WM8994_GPN_LVL, value);
}

static int wm8994_gpio_to_irq(struct gpio_chip *chip, unsigned offset)
{
struct wm8994_gpio *wm8994_gpio = to_wm8994_gpio(chip);
struct wm8994 *wm8994 = wm8994_gpio->wm8994;

if (!wm8994->irq_base)
return -EINVAL;

return wm8994->irq_base + offset;
}


#ifdef CONFIG_DEBUG_FS
static void wm8994_gpio_dbg_show(struct seq_file *s, struct gpio_chip *chip)
{
Expand Down

0 comments on commit 83ab49b

Please sign in to comment.