aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorKent Gibson <warthog618@gmail.com>2023-06-24 13:20:52 +0800
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>2023-06-26 10:06:11 +0200
commita520383ee9284f7c5cc5304e8d179479804f26f3 (patch)
tree87e4918a48e87161292d370259e6977dd7de7011
parentaaed0f2e62553bad03e44d0bb514bbcaed811f8b (diff)
downloadlibgpiod-a520383ee9284f7c5cc5304e8d179479804f26f3.tar.gz
core: examples: fix file comments
Some of the file comments are cut-and-paste errors, so replace them with the correct comment. Signed-off-by: Kent Gibson <warthog618@gmail.com> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
-rw-r--r--examples/async_watch_line_value.c2
-rw-r--r--examples/get_multiple_line_values.c2
-rw-r--r--examples/reconfigure_input_to_output.c5
-rw-r--r--examples/watch_multiple_line_values.c2
4 files changed, 7 insertions, 4 deletions
diff --git a/examples/async_watch_line_value.c b/examples/async_watch_line_value.c
index f35fb1a9..8b1d643b 100644
--- a/examples/async_watch_line_value.c
+++ b/examples/async_watch_line_value.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: 2023 Kent Gibson <warthog618@gmail.com>
-/* Minimal example of asynchronously watching for edges on a single line */
+/* Minimal example of asynchronously watching for edges on a single line. */
#include <errno.h>
#include <gpiod.h>
diff --git a/examples/get_multiple_line_values.c b/examples/get_multiple_line_values.c
index b16c5702..c6df3f65 100644
--- a/examples/get_multiple_line_values.c
+++ b/examples/get_multiple_line_values.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: 2023 Kent Gibson <warthog618@gmail.com>
-/* Minimal example of reading a single line. */
+/* Minimal example of reading multiple lines. */
#include <errno.h>
#include <gpiod.h>
diff --git a/examples/reconfigure_input_to_output.c b/examples/reconfigure_input_to_output.c
index e8fbb1ca..451bb0e6 100644
--- a/examples/reconfigure_input_to_output.c
+++ b/examples/reconfigure_input_to_output.c
@@ -1,7 +1,10 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: 2023 Kent Gibson <warthog618@gmail.com>
-/* Minimal example of reading a single line. */
+/*
+ * Example of a bi-directional line requested as input and then switched
+ * to output.
+ */
#include <errno.h>
#include <gpiod.h>
diff --git a/examples/watch_multiple_line_values.c b/examples/watch_multiple_line_values.c
index 80152706..e955b2c7 100644
--- a/examples/watch_multiple_line_values.c
+++ b/examples/watch_multiple_line_values.c
@@ -1,7 +1,7 @@
// SPDX-License-Identifier: GPL-2.0-or-later
// SPDX-FileCopyrightText: 2023 Kent Gibson <warthog618@gmail.com>
-/* Minimal example of watching for edges on a single line. */
+/* Minimal example of watching for edges on multiple lines. */
#include <errno.h>
#include <gpiod.h>