From da25df40dcc80ec1d27fbbfd7c504cb9ed79187d Mon Sep 17 00:00:00 2001 From: Kent Gibson Date: Sun, 1 Dec 2019 11:24:05 +0800 Subject: [PATCH] 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 --- include/gpiod.h | 1 + 1 file changed, 1 insertion(+) 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. * -- 2.30.2