[PATCH 0/4] leds: netdev trigger: allow setting initial values in device tree
From: Rasmus Villemoes
Date: Wed Mar 13 2019 - 16:26:22 EST
I asked whether it would be reasonable to be able to initialize a
netdev trigger from DT data and was told "patch welcome", so here's an
attempt at implementing that, adding some pieces of documentation
along the way that would have saved me some time figuring out how to
transition away from the deprecated CONFIG_CAN_LEDS.
Rasmus Villemoes (4):
leds: netdev trigger: use memcpy in device_name_store
leds: netdev trigger: factor out middle part of device_name_store
leds: netdev trigger: add documentation to leds/common.txt
leds: netdev trigger: allow setting initial values in device tree
.../devicetree/bindings/leds/common.txt | 20 ++++++
drivers/leds/trigger/ledtrig-netdev.c | 64 +++++++++++++++----
drivers/net/can/Kconfig | 3 +-
3 files changed, 73 insertions(+), 14 deletions(-)
--
2.20.1