doc: update the descriptions for chip iterators
authorBartosz Golaszewski <bartekgola@gmail.com>
Sun, 5 Nov 2017 19:23:42 +0000 (20:23 +0100)
committerBartosz Golaszewski <bartekgola@gmail.com>
Sun, 5 Nov 2017 19:34:49 +0000 (20:34 +0100)
The 'next' routines for chip iterators can no longer fail. Update
the docs accordingly. Also: turn the extended description into a note
for the noclose variant.

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

index 3276036181df3a854ab2b84e5f09cc4643ec8c30..8c0ec91b1450f9c806110b31984cd0f0d82be318 100644 (file)
@@ -1180,8 +1180,8 @@ void gpiod_chip_iter_free_noclose(struct gpiod_chip_iter *iter) GPIOD_API;
 /**
  * @brief Get the next gpiochip handle.
  * @param iter The gpiochip iterator object.
- * @return Pointer to an open gpiochip handle or NULL if the next chip can't
- *         be accessed.
+ * @return Pointer to the next open gpiochip handle or NULL if no more chips
+ *         are present in the system.
  * @note The previous chip handle will be closed using ::gpiod_chip_iter_free.
  */
 struct gpiod_chip *
@@ -1190,11 +1190,10 @@ gpiod_chip_iter_next(struct gpiod_chip_iter *iter) GPIOD_API;
 /**
  * @brief Get the next gpiochip handle without closing the previous one.
  * @param iter The gpiochip iterator object.
- * @return Pointer to an open gpiochip handle or NULL if the next chip can't
- *         be accessed.
- *
- * This function works just like ::gpiod_chip_iter_next but doesn't close the
- * most recently opened chip handle.
+ * @return Pointer to the next open gpiochip handle or NULL if no more chips
+ *         are present in the system.
+ * @note This function works just like ::gpiod_chip_iter_next but doesn't
+ *       close the most recently opened chip handle.
  */
 struct gpiod_chip *
 gpiod_chip_iter_next_noclose(struct gpiod_chip_iter *iter) GPIOD_API;