gpiolib: provide gpio_device_find_by_label()
authorBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 27 Sep 2023 14:29:24 +0000 (16:29 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Wed, 4 Oct 2023 11:29:45 +0000 (13:29 +0200)
commitd62fcd9f1897d587f8f9db3f77ccae8797a44b5d
treec918a5913b767f76dd15c74c5f3ac5730e928018
parentcfe102f63308c8c8e01199a682868a64b83f653e
gpiolib: provide gpio_device_find_by_label()

By far the most common way of looking up GPIO devices is using their
label. Provide a helpers for that to avoid every user implementing their
own matching function.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org>
Reviewed-by: Linus Walleij <linus.walleij@linaro.org>
drivers/gpio/gpiolib.c
include/linux/gpio/driver.h