projects
/
qemu-gpiodev
/
libgpiod.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
26b3c55
)
core: fix gpiod_simple_get_value()
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Thu, 5 Jan 2017 13:59:36 +0000
(14:59 +0100)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Thu, 5 Jan 2017 14:00:03 +0000
(15:00 +0100)
We should set direction to INPUT.
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
core.c
patch
|
blob
|
history
diff --git
a/core.c
b/core.c
index cedb15d1b0803cbb1dd9736e42eaaeab9928fd70..4fa9d0db485c55c08966cfdac62ae7b7c949a16c 100644
(file)
--- a/
core.c
+++ b/
core.c
@@
-108,7
+108,7
@@
int gpiod_simple_get_value(const char *device, unsigned int offset)
memset(&config, 0, sizeof(config));
config.consumer = libgpiod_consumer;
- config.direction = GPIOD_DIRECTION_
AS_IS
;
+ config.direction = GPIOD_DIRECTION_
INPUT
;
chip = gpiod_chip_open_lookup(device);
if (!chip)