public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH v2 0/3] Allow attaching software node when registering platform devices
@ 2026-02-14  2:52 Dmitry Torokhov
  2026-02-14  2:52 ` [PATCH v2 1/3] driver core: platform: add kerneldoc to struct platform_device_info Dmitry Torokhov
                   ` (3 more replies)
  0 siblings, 4 replies; 13+ messages in thread
From: Dmitry Torokhov @ 2026-02-14  2:52 UTC (permalink / raw)
  To: Greg Kroah-Hartman, Danilo Krummrich
  Cc: Rafael J. Wysocki, Arnd Bergmann, Bartosz Golaszewski,
	Hans de Goede, linux-kernel

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.

-- 
Dmitry


^ permalink raw reply	[flat|nested] 13+ messages in thread

end of thread, other threads:[~2026-03-03 16:45 UTC | newest]

Thread overview: 13+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-02-14  2:52 [PATCH v2 0/3] Allow attaching software node when registering platform devices Dmitry Torokhov
2026-02-14  2:52 ` [PATCH v2 1/3] driver core: platform: add kerneldoc to struct platform_device_info Dmitry Torokhov
2026-02-16 13:31   ` Bartosz Golaszewski
2026-02-14  2:52 ` [PATCH v2 2/3] driver core: platform: allow attaching software nodes when creating devices Dmitry Torokhov
2026-02-16 13:31   ` Bartosz Golaszewski
2026-02-14  2:52 ` [PATCH v2 3/3] driver core: platform: fix various formatting issues Dmitry Torokhov
2026-02-16 13:31   ` Bartosz Golaszewski
2026-02-14 10:55 ` [PATCH v2 0/3] Allow attaching software node when registering platform devices Danilo Krummrich
2026-03-01  5:02   ` Dmitry Torokhov
2026-03-02  0:42     ` Danilo Krummrich
2026-03-02 14:39       ` Danilo Krummrich
2026-03-03 15:55         ` Dmitry Torokhov
2026-03-03 16:45         ` Danilo Krummrich

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox