doc: document the reasons for deprecating interfaces
authorBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 6 Aug 2020 20:02:55 +0000 (22:02 +0200)
committerBartosz Golaszewski <bgolaszewski@baylibre.com>
Thu, 6 Aug 2020 20:02:55 +0000 (22:02 +0200)
Use the @deprecated doxygen tag to mark deprecated functions and explain
why their usage is discouraged.

Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
include/gpiod.h

index 67b06c708f07e1312a0efd7061e252892abd93dd..c83ebf7189cf28d215ae039a50a38af3e85fd49e 100644 (file)
@@ -347,6 +347,9 @@ typedef int (*gpiod_ctxless_event_poll_cb)(unsigned int,
  * @note The way the ctxless event loop works is described in detail in
  *       ::gpiod_ctxless_event_loop_multiple - this is just a wrapper aound
  *       this routine which calls it for a single GPIO line.
+ * @deprecated This function suffers from an issue where HW may not allow
+ *             setting up both rising and falling egde interrupts at the same
+ *             time.
  */
 int gpiod_ctxless_event_loop(const char *device, unsigned int offset,
                             bool active_low, const char *consumer,
@@ -370,6 +373,9 @@ int gpiod_ctxless_event_loop(const char *device, unsigned int offset,
  * @return 0 no errors were encountered, -1 if an error occurred.
  * @note The poll callback can be NULL in which case the routine will fall
  *       back to a basic, ppoll() based callback.
+ * @deprecated This function suffers from an issue where HW may not allow
+ *             setting up both rising and falling egde interrupts at the same
+ *             time.
  *
  * Internally this routine opens the GPIO chip, requests the set of lines for
  * both-edges events and calls the polling callback in a loop. The role of the
@@ -939,7 +945,9 @@ int gpiod_line_update(struct gpiod_line *line) GPIOD_API;
 /**
  * @brief Check if the line info needs to be updated.
  * @param line GPIO line object.
- * @return Deprecated and no longer functional - always returns false.
+ * @return Always returns false.
+ * @deprecated This mechanism no longer exists in the library and this function
+ *             does nothing.
  */
 bool
 gpiod_line_needs_update(struct gpiod_line *line) GPIOD_API GPIOD_DEPRECATED;