Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit e2bfba41 authored by Rojhalat Ibrahim's avatar Rojhalat Ibrahim Committed by Linus Walleij
Browse files

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: default avatarRojhalat Ibrahim <imr@rtschenk.de>
Signed-off-by: default avatarLinus Walleij <linus.walleij@linaro.org>
parent 3b0213d5
Loading
Loading
Loading
Loading
+14 −14
Original line number Original line Diff line number Diff line
@@ -241,16 +241,16 @@ Set multiple GPIO outputs with a single function call
-----------------------------------------------------
-----------------------------------------------------
The following functions set the output values of an array of GPIOs:
The following functions set the output values of an array of GPIOs:


	void gpiod_set_array(unsigned int array_size,
	void gpiod_set_array_value(unsigned int array_size,
				   struct gpio_desc **desc_array,
				   struct gpio_desc **desc_array,
				   int *value_array)
				   int *value_array)
	void gpiod_set_raw_array(unsigned int array_size,
	void gpiod_set_raw_array_value(unsigned int array_size,
				       struct gpio_desc **desc_array,
				       struct gpio_desc **desc_array,
				       int *value_array)
				       int *value_array)
	void gpiod_set_array_cansleep(unsigned int array_size,
	void gpiod_set_array_value_cansleep(unsigned int array_size,
					    struct gpio_desc **desc_array,
					    struct gpio_desc **desc_array,
					    int *value_array)
					    int *value_array)
	void gpiod_set_raw_array_cansleep(unsigned int array_size,
	void gpiod_set_raw_array_value_cansleep(unsigned int array_size,
						struct gpio_desc **desc_array,
						struct gpio_desc **desc_array,
						int *value_array)
						int *value_array)


@@ -271,7 +271,7 @@ matches the desired group of GPIOs, those GPIOs can be set by simply using
the struct gpio_descs returned by gpiod_get_array():
the struct gpio_descs returned by gpiod_get_array():


	struct gpio_descs *my_gpio_descs = gpiod_get_array(...);
	struct gpio_descs *my_gpio_descs = gpiod_get_array(...);
	gpiod_set_array(my_gpio_descs->ndescs, my_gpio_descs->desc,
	gpiod_set_array_value(my_gpio_descs->ndescs, my_gpio_descs->desc,
			      my_gpio_values);
			      my_gpio_values);


It is also possible to set a completely arbitrary array of descriptors. The
It is also possible to set a completely arbitrary array of descriptors. The