Allow attaching software node when registering platform devices
Get series with b4
b4 am [email protected]Versions newest first
- v2 Latest3 patches 9 repliesIn review
Changes in v2 from the cover letter
- add kerneldoc for platform_device_info
- split out formatting changes into a separate patch
Patches in v2 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/3 | driver core: platform: add kerneldoc to struct platform_device_infoinclude/ | +42 | 1 reply | |
| 2/3 | driver core: platform: allow attaching software nodes when creating devicesdrivers/ include/ | +14 | 1 reply | |
| 3/3 | driver core: platform: fix various formatting issuesdrivers/ | +21 | 1 reply |
Reviews trailers per patch
All 3 patches have a Reviewed-by or Acked-by.
| Patch | Bartosz Golaszewski |
|---|---|
| 1/3 | R-b |
| 2/3 | R-b |
| 3/3 | R-b |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [PATCH v2 0/3] Allow attaching software node when registering platform devices
When converting legacy board code to use static device properties, especially when using static device properties for GPIO references, it is often required to attach a secondary software node to platform devices being created.
To reduce the amount of boilerplate needed add 'swnode' field to platform_device_info structure and attach this software node (and register it if it is not yet registered) as a secondary node to the new platform device.
v2:
- add kerneldoc for platform_device_info
- split out formatting changes into a separate patch
Dmitry Torokhov (3):
driver core: platform: add kerneldoc to struct platform_device_info driver core: platform: allow attaching software nodes when creating
devices
driver core: platform: fix various formatting issues
drivers/base/platform.c | 58 ++++++++++++++++----------------- include/linux/platform_device.h | 58 ++++++++++++++++++++++++++------- 2 files changed, 76 insertions(+), 40 deletions(-)
Thanks.
Signature · 1 line
Dmitry