projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4f45348
)
gpiolib: Let gpiod_add_lookup_table() call gpiod_add_lookup_tables()
author
Geert Uytterhoeven
<geert+renesas@glider.be>
Fri, 3 Dec 2021 13:48:17 +0000
(14:48 +0100)
committer
Bartosz Golaszewski
<brgl@bgdev.pl>
Fri, 3 Dec 2021 14:47:16 +0000
(15:47 +0100)
This saves 20 bytes on arm32, and 44 bytes on arm64.
Signed-off-by: Geert Uytterhoeven <geert+renesas@glider.be>
Signed-off-by: Bartosz Golaszewski <brgl@bgdev.pl>
drivers/gpio/gpiolib.c
patch
|
blob
|
history
diff --git
a/drivers/gpio/gpiolib.c
b/drivers/gpio/gpiolib.c
index abfbf546d1599ebca02d535a67c145c624ca8a4c..85168f88a7fec77430dbf8517764bc48e9e6e2a2 100644
(file)
--- a/
drivers/gpio/gpiolib.c
+++ b/
drivers/gpio/gpiolib.c
@@
-3487,11
+3487,7
@@
EXPORT_SYMBOL_GPL(gpiod_set_array_value_cansleep);
*/
void gpiod_add_lookup_table(struct gpiod_lookup_table *table)
{
- mutex_lock(&gpio_lookup_lock);
-
- list_add_tail(&table->list, &gpio_lookup_list);
-
- mutex_unlock(&gpio_lookup_lock);
+ gpiod_add_lookup_tables(&table, 1);
}
EXPORT_SYMBOL_GPL(gpiod_add_lookup_table);