leds: populate the device's of_node
authorJean-Jacques Hiblot <jjhiblot@ti.com>
Sun, 5 Jan 2020 22:31:14 +0000 (23:31 +0100)
committerPavel <pavel@ucw.cz>
Sun, 5 Jan 2020 23:20:22 +0000 (00:20 +0100)
commit7a349e8c535d7327bf80710323c725df47149b8d
tree0261530b694df387fb63495741fd27a925755972
parente389240ad99292d52a4f8ff30f16830dc9c63779
leds: populate the device's of_node

If initialization data is available and its fwnode is actually a
of_node, store this information in the led device's structure. This
will allow the device to use or provide OF-based API such (devm_xxx).

Signed-off-by: Jean-Jacques Hiblot <jjhiblot@ti.com>
Signed-off-by: Pavel Machek <pavel@ucw.cz>
drivers/leds/led-class.c