chip::wait_info_event() and line_request::wait_edge_events() behave the
same as their C counterparts in that they block indefinitely when passed
a negative timeout value. State it explicitly in the docs.
Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
/**
* @brief Wait for line status events on any of the watched lines
* exposed by this chip.
- * @param timeout Wait time limit in nanoseconds.
+ * @param timeout Wait time limit in nanoseconds. If set to 0, the
+ * function returns immediatelly. If set to a negative
+ * number, the function blocks indefinitely until an
+ * event becomes available.
* @return True if at least one event is ready to be read. False if the
* wait timed out.
*/
/**
* @brief Wait for edge events on any of the lines requested with edge
* detection enabled.
- * @param timeout Wait time limit in nanoseconds.
+ * @param timeout Wait time limit in nanoseconds. If set to 0, the
+ * function returns immediatelly. If set to a negative
+ * number, the function blocks indefinitely until an
+ * event becomes available.
* @return True if at least one event is ready to be read. False if the
* wait timed out.
*/