git.samba.org
/
sfrench
/
cifs-2.6.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
gpio: Use new GPIO_LINE_DIRECTION
[sfrench/cifs-2.6.git]
/
drivers
/
gpio
/
gpio-tps65912.c
diff --git
a/drivers/gpio/gpio-tps65912.c
b/drivers/gpio/gpio-tps65912.c
index 3ad68bd78282590103a735c49430b6348276b803..510d9ed9fd2a358af99ac5d7e58cf0d39c2b3cd8 100644
(file)
--- a/
drivers/gpio/gpio-tps65912.c
+++ b/
drivers/gpio/gpio-tps65912.c
@@
-32,9
+32,9
@@
static int tps65912_gpio_get_direction(struct gpio_chip *gc,
return ret;
if (val & GPIO_CFG_MASK)
- return
0
;
+ return
GPIO_LINE_DIRECTION_OUT
;
else
- return
1
;
+ return
GPIO_LINE_DIRECTION_IN
;
}
static int tps65912_gpio_direction_input(struct gpio_chip *gc, unsigned offset)