From: Kent Gibson Date: Sun, 1 Dec 2019 03:24:05 +0000 (+0800) Subject: doc: document gpiod_line_set_value_bulk NULL values behaviour X-Git-Url: http://git.maquefel.me/?a=commitdiff_plain;h=da25df40dcc80ec1d27fbbfd7c504cb9ed79187d;p=qemu-gpiodev%2Flibgpiod.git doc: document gpiod_line_set_value_bulk NULL values behaviour The handling of NULL values by gpiod_line_set_value_bulk has been changed to interpret NULL as low values for all lines. This patch updates the documentation of the function to describe that. Signed-off-by: Kent Gibson Signed-off-by: Bartosz Golaszewski --- diff --git a/include/gpiod.h b/include/gpiod.h index 03fd4da..0ecb804 100644 --- a/include/gpiod.h +++ b/include/gpiod.h @@ -1296,6 +1296,7 @@ int gpiod_line_set_value(struct gpiod_line *line, int value) GPIOD_API; * @brief Set the values of a set of GPIO lines. * @param bulk Set of GPIO lines to reserve. * @param values An array holding line_bulk->num_lines new values for lines. + * A NULL pointer is interpreted as a logical low for all lines. * @return 0 is the operation succeeds. In case of an error this routine * returns -1 and sets the last error number. *