Skip to content

Commit

Permalink
gpiolib: Let gpiod_add_lookup_table() call gpiod_add_lookup_tables()
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Geert Uytterhoeven authored and Bartosz Golaszewski committed Dec 3, 2021
1 parent 4f45348 commit 49fdfe6
Showing 1 changed file with 1 addition and 5 deletions.
6 changes: 1 addition & 5 deletions drivers/gpio/gpiolib.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);

Expand Down

0 comments on commit 49fdfe6

Please sign in to comment.