aboutsummaryrefslogtreecommitdiffstats
path: root/Documentation/gpio
diff options
context:
space:
mode:
authorRojhalat Ibrahim <imr@rtschenk.de>2015-06-02 05:38:06 -0400
committerLinus Walleij <linus.walleij@linaro.org>2015-06-04 04:46:43 -0400
commite2bfba418598951733aff5822ca617efdbc06715 (patch)
tree81b523379584501ca0838faf44e9bccdc238a2a7 /Documentation/gpio
parent3b0213d56eb7f78c9a0e78dfcd9ec077bb1cf4e9 (diff)
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>
Diffstat (limited to 'Documentation/gpio')
-rw-r--r--Documentation/gpio/consumer.txt28
1 files changed, 14 insertions, 14 deletions
diff --git a/Documentation/gpio/consumer.txt b/Documentation/gpio/consumer.txt
index c21c1313f09e..bbc8b5888b80 100644
--- a/Documentation/gpio/consumer.txt
+++ b/Documentation/gpio/consumer.txt
@@ -241,18 +241,18 @@ Set multiple GPIO outputs with a single function call
241----------------------------------------------------- 241-----------------------------------------------------
242The following functions set the output values of an array of GPIOs: 242The following functions set the output values of an array of GPIOs:
243 243
244 void gpiod_set_array(unsigned int array_size, 244 void gpiod_set_array_value(unsigned int array_size,
245 struct gpio_desc **desc_array, 245 struct gpio_desc **desc_array,
246 int *value_array) 246 int *value_array)
247 void gpiod_set_raw_array(unsigned int array_size, 247 void gpiod_set_raw_array_value(unsigned int array_size,
248 struct gpio_desc **desc_array, 248 struct gpio_desc **desc_array,
249 int *value_array) 249 int *value_array)
250 void gpiod_set_array_cansleep(unsigned int array_size, 250 void gpiod_set_array_value_cansleep(unsigned int array_size,
251 struct gpio_desc **desc_array, 251 struct gpio_desc **desc_array,
252 int *value_array) 252 int *value_array)
253 void gpiod_set_raw_array_cansleep(unsigned int array_size, 253 void gpiod_set_raw_array_value_cansleep(unsigned int array_size,
254 struct gpio_desc **desc_array, 254 struct gpio_desc **desc_array,
255 int *value_array) 255 int *value_array)
256 256
257The array can be an arbitrary set of GPIOs. The functions will try to set 257The array can be an arbitrary set of GPIOs. The functions will try to set
258GPIOs belonging to the same bank or chip simultaneously if supported by the 258GPIOs 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
271the struct gpio_descs returned by gpiod_get_array(): 271the struct gpio_descs returned by gpiod_get_array():
272 272
273 struct gpio_descs *my_gpio_descs = gpiod_get_array(...); 273 struct gpio_descs *my_gpio_descs = gpiod_get_array(...);
274 gpiod_set_array(my_gpio_descs->ndescs, my_gpio_descs->desc, 274 gpiod_set_array_value(my_gpio_descs->ndescs, my_gpio_descs->desc,
275 my_gpio_values); 275 my_gpio_values);
276 276
277It is also possible to set a completely arbitrary array of descriptors. The 277It is also possible to set a completely arbitrary array of descriptors. The
278descriptors may be obtained using any combination of gpiod_get() and 278descriptors may be obtained using any combination of gpiod_get() and