gpiolib: of: Allow "trigger-sources" to reference a GPIO
authorLinus Walleij <linus.walleij@linaro.org>
Tue, 26 Sep 2023 21:48:11 +0000 (23:48 +0200)
committerBartosz Golaszewski <bartosz.golaszewski@linaro.org>
Mon, 2 Oct 2023 07:45:43 +0000 (09:45 +0200)
commit3bb5c9ddf46bf35bd86293cf77f1d88689689fc2
tree94dd4768cbda3bfd970079b1cb1554294380dfdd
parent46d0825104b8e62ea5b3f0f749e656ecfdcc20da
gpiolib: of: Allow "trigger-sources" to reference a GPIO

The "trigger-sources" phandle used for LED triggers are special:
the DT bindings mandate that such triggers have the same phandle
references no matter what the trigger is. A GPIO is just another
kind of device that can trigger a LED.

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