Skip to content

Allow attaching software node when registering platform devices

Dmitry Torokhov lkml 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. 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 filesSizeRepliesApplied
1/3driver core: platform: add kerneldoc to struct platform_device_infoinclude/linux/platform_device.h+42 -111 reply
2/3driver core: platform: allow attaching software nodes when creating devicesdrivers/base/platform.c include/linux/platform_device.h+14 -21 reply
3/3driver core: platform: fix various formatting issuesdrivers/base/platform.c+21 -281 reply

Reviews trailers per patch

All 3 patches have a Reviewed-by or Acked-by.

PatchBartosz Golaszewski
1/3R-b
2/3R-b
3/3R-b

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v2 thread

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