Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 360751
b: refs/heads/master
c: e97f9b5
h: refs/heads/master
i:
  360749: fd9408a
  360747: 4d86deb
  360743: 1ef05a6
  360735: c866daf
v: v3
  • Loading branch information
Mika Westerberg authored and Grant Likely committed Mar 2, 2013
1 parent 0b41067 commit 1d54ae2
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 24d7628fe8b10bb3770a11ddf71719613832a298
refs/heads/master: e97f9b5277afeabb54892ebc6f68500098467ba1
4 changes: 2 additions & 2 deletions trunk/drivers/gpio/gpio-ich.c
Original file line number Diff line number Diff line change
Expand Up @@ -128,9 +128,9 @@ static int ichx_read_bit(int reg, unsigned nr)
return data & (1 << bit) ? 1 : 0;
}

static int ichx_gpio_check_available(struct gpio_chip *gpio, unsigned nr)
static bool ichx_gpio_check_available(struct gpio_chip *gpio, unsigned nr)
{
return (ichx_priv.use_gpio & (1 << (nr / 32))) ? 0 : -ENXIO;
return ichx_priv.use_gpio & (1 << (nr / 32));
}

static int ichx_gpio_direction_input(struct gpio_chip *gpio, unsigned nr)
Expand Down

0 comments on commit 1d54ae2

Please sign in to comment.