aboutsummaryrefslogtreecommitdiff
path: root/include/linux/fpga/fpga-mgr.h
diff options
context:
space:
mode:
authorLinus Walleij <[email protected]>2022-04-04 22:35:22 +0200
committerPavel Machek <[email protected]>2022-05-05 10:04:52 +0200
commit835fc89e249e07ec5c1587a297e30db8f2adcea3 (patch)
treedc956a5a1262a7651b2c853f0df6da22049a4452 /include/linux/fpga/fpga-mgr.h
parent4c350c658f946dae81dbbaff25da0a03e9bb0c4b (diff)
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 <[email protected]> Signed-off-by: Linus Walleij <[email protected]> Signed-off-by: Pavel Machek <[email protected]>
Diffstat (limited to 'include/linux/fpga/fpga-mgr.h')
0 files changed, 0 insertions, 0 deletions