]> asedeno.scripts.mit.edu Git - linux.git/commitdiff
Documentation: gpio: Fix return type of gpiod_set_raw_array_value*()
authorGeert Uytterhoeven <geert+renesas@glider.be>
Thu, 27 Sep 2018 11:38:08 +0000 (13:38 +0200)
committerLinus Walleij <linus.walleij@linaro.org>
Mon, 1 Oct 2018 10:21:38 +0000 (12:21 +0200)
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: 3027743f83f867d8 ("gpio: Remove VLA from gpiolib")
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>
Documentation/driver-api/gpio/consumer.rst

index cf992e5ab976e62a19d20026641096a1115dd195..ba4973829faef23870ef2704b8cb630d47a77ef4 100644 (file)
@@ -344,18 +344,18 @@ The following functions get or set the values of an array of GPIOs::
                                   struct gpio_desc **desc_array,
                                   struct gpio_array *array_info,
                                   unsigned long *value_bitmap)
-       void gpiod_set_raw_array_value(unsigned int array_size,
-                                      struct gpio_desc **desc_array,
-                                      struct gpio_array *array_info,
-                                      unsigned long *value_bitmap)
+       int gpiod_set_raw_array_value(unsigned int array_size,
+                                     struct gpio_desc **desc_array,
+                                     struct gpio_array *array_info,
+                                     unsigned long *value_bitmap)
        void gpiod_set_array_value_cansleep(unsigned int array_size,
                                            struct gpio_desc **desc_array,
                                            struct gpio_array *array_info,
                                            unsigned long *value_bitmap)
-       void gpiod_set_raw_array_value_cansleep(unsigned int array_size,
-                                               struct gpio_desc **desc_array,
-                                               struct gpio_array *array_info,
-                                               unsigned long *value_bitmap)
+       int gpiod_set_raw_array_value_cansleep(unsigned int array_size,
+                                              struct gpio_desc **desc_array,
+                                              struct gpio_array *array_info,
+                                              unsigned long *value_bitmap)
 
 The array can be an arbitrary set of GPIOs. The functions will try to access
 GPIOs belonging to the same bank or chip simultaneously if supported by the