* [PATCH] fix documentation after renaming gpiod_set_array to gpiod_set_array_value
@ 2015-06-02 9:38 Rojhalat Ibrahim
2015-06-04 8:47 ` Linus Walleij
0 siblings, 1 reply; 2+ messages in thread
From: Rojhalat Ibrahim @ 2015-06-02 9:38 UTC (permalink / raw)
To: linux-gpio@vger.kernel.org; +Cc: Linus Walleij, Alexandre Courbot
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>
---
Documentation/gpio/consumer.txt | 28 ++++++++++++++--------------
1 file changed, 14 insertions(+), 14 deletions(-)
diff --git a/Documentation/gpio/consumer.txt b/Documentation/gpio/consumer.txt
index c21c131..bbc8b58 100644
--- a/Documentation/gpio/consumer.txt
+++ b/Documentation/gpio/consumer.txt
@@ -241,18 +241,18 @@ Set multiple GPIO outputs with a single function call
-----------------------------------------------------
The following functions set the output values of an array of GPIOs:
- void gpiod_set_array(unsigned int array_size,
- struct gpio_desc **desc_array,
- int *value_array)
- void gpiod_set_raw_array(unsigned int array_size,
- struct gpio_desc **desc_array,
- int *value_array)
- void gpiod_set_array_cansleep(unsigned int array_size,
- struct gpio_desc **desc_array,
- int *value_array)
- void gpiod_set_raw_array_cansleep(unsigned int array_size,
- struct gpio_desc **desc_array,
- int *value_array)
+ void gpiod_set_array_value(unsigned int array_size,
+ struct gpio_desc **desc_array,
+ int *value_array)
+ void gpiod_set_raw_array_value(unsigned int array_size,
+ struct gpio_desc **desc_array,
+ int *value_array)
+ void gpiod_set_array_value_cansleep(unsigned int array_size,
+ struct gpio_desc **desc_array,
+ int *value_array)
+ void gpiod_set_raw_array_value_cansleep(unsigned int array_size,
+ struct gpio_desc **desc_array,
+ int *value_array)
The array can be an arbitrary set of GPIOs. The functions will try to set
GPIOs belonging to the same bank or chip simultaneously if supported by the
@@ -271,8 +271,8 @@ matches the desired group of GPIOs, those GPIOs can be set by simply using
the struct gpio_descs returned by gpiod_get_array():
struct gpio_descs *my_gpio_descs = gpiod_get_array(...);
- gpiod_set_array(my_gpio_descs->ndescs, my_gpio_descs->desc,
- my_gpio_values);
+ gpiod_set_array_value(my_gpio_descs->ndescs, my_gpio_descs->desc,
+ my_gpio_values);
It is also possible to set a completely arbitrary array of descriptors. The
descriptors may be obtained using any combination of gpiod_get() and
--
2.3.6
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] fix documentation after renaming gpiod_set_array to gpiod_set_array_value
2015-06-02 9:38 [PATCH] fix documentation after renaming gpiod_set_array to gpiod_set_array_value Rojhalat Ibrahim
@ 2015-06-04 8:47 ` Linus Walleij
0 siblings, 0 replies; 2+ messages in thread
From: Linus Walleij @ 2015-06-04 8:47 UTC (permalink / raw)
To: Rojhalat Ibrahim; +Cc: linux-gpio@vger.kernel.org, Alexandre Courbot
On Tue, Jun 2, 2015 at 11:38 AM, Rojhalat Ibrahim <imr@rtschenk.de> wrote:
> 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>
Patch applied.
Yours,
Linus Walleij
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2015-06-04 8:47 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2015-06-02 9:38 [PATCH] fix documentation after renaming gpiod_set_array to gpiod_set_array_value Rojhalat Ibrahim
2015-06-04 8:47 ` Linus Walleij
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).