mirror of
https://mirrors.bfsu.edu.cn/git/linux.git
synced 2024-11-26 05:34:13 +08:00
gpiolib: Let gpiod_add_lookup_table() call gpiod_add_lookup_tables()
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>
This commit is contained in:
parent
4f45348934
commit
49fdfe6640
@ -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);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user