summaryrefslogtreecommitdiffstats
path: root/net/Kconfig.debug
diff options
context:
space:
mode:
authorLinus Walleij <linus.walleij@linaro.org>2022-04-04 22:35:22 +0200
committerPavel Machek <pavel@ucw.cz>2022-05-05 10:04:52 +0200
commit835fc89e249e07ec5c1587a297e30db8f2adcea3 (patch)
treedc956a5a1262a7651b2c853f0df6da22049a4452 /net/Kconfig.debug
parentleds: regulator: Add dev helper variable (diff)
downloadlinux-835fc89e249e07ec5c1587a297e30db8f2adcea3.tar.xz
linux-835fc89e249e07ec5c1587a297e30db8f2adcea3.zip
leds: regulator: Make probeable from device tree
The regulator LED can easily be adapted to probe from the device tree. We switch led_classdev_register() to led_classdev_register_ext() passing some struct led_init_data init_data that we leave NULL save the fwnode if platform data isn't present so that it will be populated from the device tree. If we have platform data we set up the name from the platform data but using init_data instead. Cc: Antonio Ospite <ao2@ao2.it> Signed-off-by: Linus Walleij <linus.walleij@linaro.org> Signed-off-by: Pavel Machek <pavel@ucw.cz>
Diffstat (limited to 'net/Kconfig.debug')
0 files changed, 0 insertions, 0 deletions