Here's a reroll of the attempt to allow initializing led_netdev_data from DT, fixing minor bugs and inconsistensies I found while digging into the code.
Changes in v2: * use 0 instead of '\0' for consistency with existing code [Pavel] * name the helper netdev_trig_set_device [Uwe] * add a patch allowing echoing 15-character names to device_name * ensure the length checking is done in one place [Uwe] * drop hunk from CAN Kconfig file for now [Uwe] * don't mention CONFIG_CAN_LEDS in device tree binding [Uwe] * guard netdev_trig_of_init by LED_INIT_DEFAULT_TRIGGER bit [Jacek] Rasmus Villemoes (6): leds: netdev trigger: use memcpy in device_name_store leds: netdev trigger: factor out middle part of device_name_store leds: netdev trigger: move newline handling back to device_name_store leds: netdev trigger: move name length checking to netdev_trig_set_device leds: netdev trigger: add documentation to leds/common.txt leds: netdev trigger: allow setting initial values in device tree .../devicetree/bindings/leds/common.txt | 14 ++++ drivers/leds/trigger/ledtrig-netdev.c | 68 +++++++++++++++---- 2 files changed, 69 insertions(+), 13 deletions(-) -- 2.20.1