leds: netdev trigger: allow setting initial values in device tree
Get series with b4
b4 am [email protected]Versions newest first · linked by author and title
- v2 Latest6 patches 14 repliesIn review
- v14 patches 19 repliesSuperseded
Changes in v2 from the cover letter
* 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]
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/6 | leds: netdev trigger: use memcpy in device_name_storedrivers/ | +2 | 6 replies | |
| 2/6 | leds: netdev trigger: factor out middle part of device_name_storedrivers/ | +18 | 1 reply | |
| 3/6 | leds: netdev trigger: move newline handling back to device_name_storedrivers/ | +5 | 1 reply | |
| 4/6 | leds: netdev trigger: move name length checking to netdev_trig_set_devicedrivers/ | +9 | 1 reply | |
| 5/6 | leds: netdev trigger: add documentation to leds/common.txtDocumentation/ | +3 | 0 replies | |
| 6/6 | leds: netdev trigger: allow setting initial values in device treeDocumentation/ drivers/ | +41 | 5 replies |
Reviews trailers per patch
3 of 6 patches have a Reviewed-by or Acked-by.
| Patch | Pavel Machek |
|---|---|
| 1/6 | A-b |
| 2/6 | |
| 3/6 | A-b |
| 4/6 | A-b |
| 5/6 | |
| 6/6 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/6] leds: netdev trigger: allow setting initial values in device tree
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(-)
Signature · 1 line
2.20.1