From: Bartosz Golaszewski Date: Wed, 31 May 2023 15:21:47 +0000 (+0200) Subject: doc: add missing @return entries X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=7d6398497a6dbe8e3e7e0cc5469b3b2223dd9dc6;p=qemu-gpiodev%2Flibgpiod.git doc: add missing @return entries There are two line-request functions that don't have their return values documented. Fix it. Signed-off-by: Bartosz Golaszewski --- diff --git a/include/gpiod.h b/include/gpiod.h index 9815446..45f31f7 100644 --- a/include/gpiod.h +++ b/include/gpiod.h @@ -983,6 +983,7 @@ int gpiod_line_request_get_values(struct gpiod_line_request *request, * @param request Line request object. * @param offset The offset of the line for which the value should be set. * @param value Value to set. + * @return 0 on success, -1 on failure. */ int gpiod_line_request_set_value(struct gpiod_line_request *request, unsigned int offset, @@ -1014,6 +1015,7 @@ int gpiod_line_request_set_values_subset(struct gpiod_line_request *request, * Each value is associated with the line identified by the * corresponding entry in the offset array filled by * ::gpiod_line_request_get_requested_offsets. + * @return 0 on success, -1 on failure. */ int gpiod_line_request_set_values(struct gpiod_line_request *request, const enum gpiod_line_value *values);