Skip to content

Commit c293766

Browse files
geertuLinus Walleij
authored andcommitted
Documentation: gpio: Fix return type of gpiod_set_raw_array_value*()
The return type of gpiod_set_raw_array_value() and gpiod_set_raw_array_value_cansleep() was changed from void to int, but the doc update was forgotten. Fixes: 3027743 ("gpio: Remove VLA from gpiolib") Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be> Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
1 parent 799d5eb commit c293766

1 file changed

Lines changed: 8 additions & 8 deletions

File tree

‎Documentation/driver-api/gpio/consumer.rst‎

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -344,18 +344,18 @@ The following functions get or set the values of an array of GPIOs::
344344
struct gpio_desc **desc_array,
345345
struct gpio_array *array_info,
346346
unsigned long *value_bitmap)
347-
void gpiod_set_raw_array_value(unsigned int array_size,
348-
struct gpio_desc **desc_array,
349-
struct gpio_array *array_info,
350-
unsigned long *value_bitmap)
347+
int gpiod_set_raw_array_value(unsigned int array_size,
348+
struct gpio_desc **desc_array,
349+
struct gpio_array *array_info,
350+
unsigned long *value_bitmap)
351351
void gpiod_set_array_value_cansleep(unsigned int array_size,
352352
struct gpio_desc **desc_array,
353353
struct gpio_array *array_info,
354354
unsigned long *value_bitmap)
355-
void gpiod_set_raw_array_value_cansleep(unsigned int array_size,
356-
struct gpio_desc **desc_array,
357-
struct gpio_array *array_info,
358-
unsigned long *value_bitmap)
355+
int gpiod_set_raw_array_value_cansleep(unsigned int array_size,
356+
struct gpio_desc **desc_array,
357+
struct gpio_array *array_info,
358+
unsigned long *value_bitmap)
359359

360360
The array can be an arbitrary set of GPIOs. The functions will try to access
361361
GPIOs belonging to the same bank or chip simultaneously if supported by the

0 commit comments

Comments
 (0)