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:
400f3f6
)
gpioset: drop the call to gpiod_line_set_value()
author
Bartosz Golaszewski
<bartekgola@gmail.com>
Mon, 2 Jan 2017 14:50:28 +0000
(15:50 +0100)
committer
Bartosz Golaszewski
<bartekgola@gmail.com>
Mon, 2 Jan 2017 14:50:28 +0000
(15:50 +0100)
This is not needed as we already pass the default value to
gpiod_line_request_dout();
Signed-off-by: Bartosz Golaszewski <bartekgola@gmail.com>
gpioset.c
patch
|
blob
|
history
diff --git
a/gpioset.c
b/gpioset.c
index 3870cf39f847eae9273abe1218df89ab8b8a8950..58d5f0b55e982a1c590f83e5eb65e34a0c7d0629 100644
(file)
--- a/
gpioset.c
+++ b/
gpioset.c
@@
-76,14
+76,6
@@
int main(int argc, char **argv)
return EXIT_FAILURE;
}
- status = gpiod_line_set_value(line, value);
- if (status < 0) {
- fprintf(stderr,
- "%s: error setting GPIO value: %s\n",
- argv[0], gpiod_strerror(gpiod_errno()));
- return EXIT_FAILURE;
- }
-
getchar();
gpiod_chip_close(chip);