Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 311761
b: refs/heads/master
c: 8cd578b
h: refs/heads/master
i:
  311759: 18f1161
v: v3
  • Loading branch information
Mark Brown authored and Linus Walleij committed Jul 5, 2012
1 parent 9438b41 commit 3373c6a
Show file tree
Hide file tree
Showing 2 changed files with 5 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: afcc0f8c174ff34305146878c40e7dcc72fcbbdf
refs/heads/master: 8cd578b6e28693f357867a77598a88ef3deb6b39
5 changes: 4 additions & 1 deletion trunk/drivers/gpio/gpio-wm8994.c
Original file line number Diff line number Diff line change
Expand Up @@ -89,8 +89,11 @@ static int wm8994_gpio_direction_out(struct gpio_chip *chip,
struct wm8994_gpio *wm8994_gpio = to_wm8994_gpio(chip);
struct wm8994 *wm8994 = wm8994_gpio->wm8994;

if (value)
value = WM8994_GPN_LVL;

return wm8994_set_bits(wm8994, WM8994_GPIO_1 + offset,
WM8994_GPN_DIR, 0);
WM8994_GPN_DIR | WM8994_GPN_LVL, value);
}

static void wm8994_gpio_set(struct gpio_chip *chip, unsigned offset, int value)
Expand Down

0 comments on commit 3373c6a

Please sign in to comment.