diff mbox series

[libgpiod] doc: fix comment mix up in gpiod.h

Message ID 20200527011055.12726-1-warthog618@gmail.com
State New
Headers show
Series [libgpiod] doc: fix comment mix up in gpiod.h | expand

Commit Message

Kent Gibson May 27, 2020, 1:10 a.m. UTC
A couple of the doc comments for GPIOD_LINE_REQUEST_XX values
document the wrong value.
Switch them so that they document the appropriate value.

Signed-off-by: Kent Gibson <warthog618@gmail.com>
---
 include/gpiod.h | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

Comments

Bartosz Golaszewski May 27, 2020, 12:07 p.m. UTC | #1
śr., 27 maj 2020 o 03:11 Kent Gibson <warthog618@gmail.com> napisał(a):
>
> A couple of the doc comments for GPIOD_LINE_REQUEST_XX values
> document the wrong value.
> Switch them so that they document the appropriate value.
>
> Signed-off-by: Kent Gibson <warthog618@gmail.com>
> ---
>  include/gpiod.h | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/include/gpiod.h b/include/gpiod.h
> index 3af97c4..f03ce95 100644
> --- a/include/gpiod.h
> +++ b/include/gpiod.h
> @@ -956,11 +956,11 @@ enum {
>         GPIOD_LINE_REQUEST_DIRECTION_OUTPUT,
>         /**< Request the line(s) for setting the GPIO line state. */
>         GPIOD_LINE_REQUEST_EVENT_FALLING_EDGE,
> -       /**< Monitor both types of events. */
> +       /**< Only watch falling edge events. */
>         GPIOD_LINE_REQUEST_EVENT_RISING_EDGE,
>         /**< Only watch rising edge events. */
>         GPIOD_LINE_REQUEST_EVENT_BOTH_EDGES,
> -       /**< Only watch falling edge events. */
> +       /**< Monitor both types of events. */
>  };
>
>  /**
> --
> 2.26.2
>

Applied, thanks!

Bartosz
diff mbox series

Patch

diff --git a/include/gpiod.h b/include/gpiod.h
index 3af97c4..f03ce95 100644
--- a/include/gpiod.h
+++ b/include/gpiod.h
@@ -956,11 +956,11 @@  enum {
 	GPIOD_LINE_REQUEST_DIRECTION_OUTPUT,
 	/**< Request the line(s) for setting the GPIO line state. */
 	GPIOD_LINE_REQUEST_EVENT_FALLING_EDGE,
-	/**< Monitor both types of events. */
+	/**< Only watch falling edge events. */
 	GPIOD_LINE_REQUEST_EVENT_RISING_EDGE,
 	/**< Only watch rising edge events. */
 	GPIOD_LINE_REQUEST_EVENT_BOTH_EDGES,
-	/**< Only watch falling edge events. */
+	/**< Monitor both types of events. */
 };
 
 /**