The description of gpiod_line_event_read() states that it reads the last
event that occurred for this line. This is not true: the kernel stores
the events in a FIFO and this function reads the next event from it.
Fix the confusing statement.
Signed-off-by: Bartosz Golaszewski <bgolaszewski@baylibre.com>
struct gpiod_line_bulk *event_bulk) GPIOD_API;
/**
- * @brief Read the last event from the GPIO line.
+ * @brief Read next pending event from the GPIO line.
* @param line GPIO line object.
* @param event Buffer to which the event data will be copied.
* @return 0 if the event was read correctly, -1 on error.