Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

fix documentation after renaming gpiod_set_array to gpiod_set_array_value

Patch "gpiolib: rename gpiod_set_array to gpiod_set_array_value" omitted
to also change the function names in the documentation. Let's fix that.

Signed-off-by: Rojhalat Ibrahim <imr@rtschenk.de>
Signed-off-by: Linus Walleij <linus.walleij@linaro.org>

authored by

Rojhalat Ibrahim and committed by
Linus Walleij
e2bfba41 3b0213d5

+14 -14
+14 -14
Documentation/gpio/consumer.txt
··· 241 241 ----------------------------------------------------- 242 242 The following functions set the output values of an array of GPIOs: 243 243 244 - void gpiod_set_array(unsigned int array_size, 245 - struct gpio_desc **desc_array, 246 - int *value_array) 247 - void gpiod_set_raw_array(unsigned int array_size, 248 - struct gpio_desc **desc_array, 249 - int *value_array) 250 - void gpiod_set_array_cansleep(unsigned int array_size, 251 - struct gpio_desc **desc_array, 252 - int *value_array) 253 - void gpiod_set_raw_array_cansleep(unsigned int array_size, 254 - struct gpio_desc **desc_array, 255 - int *value_array) 244 + void gpiod_set_array_value(unsigned int array_size, 245 + struct gpio_desc **desc_array, 246 + int *value_array) 247 + void gpiod_set_raw_array_value(unsigned int array_size, 248 + struct gpio_desc **desc_array, 249 + int *value_array) 250 + void gpiod_set_array_value_cansleep(unsigned int array_size, 251 + struct gpio_desc **desc_array, 252 + int *value_array) 253 + void gpiod_set_raw_array_value_cansleep(unsigned int array_size, 254 + struct gpio_desc **desc_array, 255 + int *value_array) 256 256 257 257 The array can be an arbitrary set of GPIOs. The functions will try to set 258 258 GPIOs belonging to the same bank or chip simultaneously if supported by the ··· 271 271 the struct gpio_descs returned by gpiod_get_array(): 272 272 273 273 struct gpio_descs *my_gpio_descs = gpiod_get_array(...); 274 - gpiod_set_array(my_gpio_descs->ndescs, my_gpio_descs->desc, 275 - my_gpio_values); 274 + gpiod_set_array_value(my_gpio_descs->ndescs, my_gpio_descs->desc, 275 + my_gpio_values); 276 276 277 277 It is also possible to set a completely arbitrary array of descriptors. The 278 278 descriptors may be obtained using any combination of gpiod_get() and