Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 358760
b: refs/heads/master
c: 476171c
h: refs/heads/master
v: v3
  • Loading branch information
Alexandre Courbot authored and Linus Walleij committed Feb 4, 2013
1 parent e2b42c5 commit f3c8782
Show file tree
Hide file tree
Showing 2 changed files with 4 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: 1107ca104f0331627f6446bfefa2d4b0e673db18
refs/heads/master: 476171ce7850b28280db6a2d0c0e4d3ff26c8117
5 changes: 3 additions & 2 deletions trunk/drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -212,13 +212,14 @@ static ssize_t gpio_direction_show(struct device *dev,

mutex_lock(&sysfs_lock);

if (!test_bit(FLAG_EXPORT, &desc->flags))
if (!test_bit(FLAG_EXPORT, &desc->flags)) {
status = -EIO;
else
} else {
gpio_get_direction(gpio);
status = sprintf(buf, "%s\n",
test_bit(FLAG_IS_OUT, &desc->flags)
? "out" : "in");
}

mutex_unlock(&sysfs_lock);
return status;
Expand Down

0 comments on commit f3c8782

Please sign in to comment.