Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186926
b: refs/heads/master
c: 1bca748
h: refs/heads/master
v: v3
  • Loading branch information
Mark Brown authored and Samuel Ortiz committed Mar 7, 2010
1 parent 78c9411 commit bba09f7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: f92e8f8144243a3651b2e350b706ea2d04931f8c
refs/heads/master: 1bca748cccec1c7f30b4424882de965100744432
6 changes: 4 additions & 2 deletions trunk/drivers/gpio/wm831x-gpio.c
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,8 @@ static int wm831x_gpio_direction_in(struct gpio_chip *chip, unsigned offset)
val |= WM831X_GPN_TRI;

return wm831x_set_bits(wm831x, WM831X_GPIO1_CONTROL + offset,
WM831X_GPN_DIR | WM831X_GPN_TRI, val);
WM831X_GPN_DIR | WM831X_GPN_TRI |
WM831X_GPN_FN_MASK, val);
}

static int wm831x_gpio_get(struct gpio_chip *chip, unsigned offset)
Expand Down Expand Up @@ -84,7 +85,8 @@ static int wm831x_gpio_direction_out(struct gpio_chip *chip,
val |= WM831X_GPN_TRI;

ret = wm831x_set_bits(wm831x, WM831X_GPIO1_CONTROL + offset,
WM831X_GPN_DIR | WM831X_GPN_TRI, val);
WM831X_GPN_DIR | WM831X_GPN_TRI |
WM831X_GPN_FN_MASK, val);
if (ret < 0)
return ret;

Expand Down

0 comments on commit bba09f7

Please sign in to comment.