]> git.baikalelectronics.ru Git - uboot.git/commit
gpio: allow passing NULL to gpio_request_by_line_name() to search all gpio controllers
authorRasmus Villemoes <rasmus.villemoes@prevas.dk>
Fri, 17 Mar 2023 20:12:22 +0000 (21:12 +0100)
committerTom Rini <trini@konsulko.com>
Thu, 30 Mar 2023 19:09:59 +0000 (15:09 -0400)
commitb5f22bf4f42e218273a9b4807217f19a40fe9d6c
treea64c106aa1c54001e61e02de15ff3d45fbe90332
parentbc99d42871937dd25cc6f6c5faac0a035c6a4164
gpio: allow passing NULL to gpio_request_by_line_name() to search all gpio controllers

The API is more convenient to use if one doesn't have to know upfront
which gpio controller has a line with the name one is searching for,
and arrange to look that device up somehow. Or implement this loop
oneself.

Signed-off-by: Rasmus Villemoes <rasmus.villemoes@prevas.dk>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/gpio/gpio-uclass.c
include/asm-generic/gpio.h