public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] platform/x86: pcengines-apuv2: reduce indiraction in swnode assignment
@ 2026-04-29  9:46 Bartosz Golaszewski
  2026-04-29 18:56 ` Dmitry Torokhov
  0 siblings, 1 reply; 2+ messages in thread
From: Bartosz Golaszewski @ 2026-04-29  9:46 UTC (permalink / raw)
  To: Hans de Goede, Ilpo Järvinen, Dmitry Torokhov
  Cc: Bartosz Golaszewski, platform-driver-x86, linux-kernel,
	Bartosz Golaszewski

struct platform_device_info now has the 'swnode' field allowing passing
software nodes directly to platform_device_register_full() without going
through software_node_fwnode(). It supports both registered and
unregistered software nodes. Use it to drop one layer of indirection.

Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>
---
 drivers/platform/x86/pcengines-apuv2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/platform/x86/pcengines-apuv2.c b/drivers/platform/x86/pcengines-apuv2.c
index 3f19589d1ba032d8360a56a6f8efef14c8e87049..8ac5f719c5a39b3511d7f4e4d752adc9d99eabfc 100644
--- a/drivers/platform/x86/pcengines-apuv2.c
+++ b/drivers/platform/x86/pcengines-apuv2.c
@@ -262,7 +262,7 @@ static struct platform_device * __init apu_create_pdev(const char *name,
 		.id = PLATFORM_DEVID_NONE,
 		.data = data,
 		.size_data = size,
-		.fwnode = software_node_fwnode(swnode),
+		.swnode = swnode,
 	};
 	struct platform_device *pdev;
 	int err;

---
base-commit: 254f49634ee16a731174d2ae34bc50bd5f45e731
change-id: 20260429-pcengines-apuv2-swnodes-c20c9279b044

Best regards,
-- 
Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>


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

* Re: [PATCH] platform/x86: pcengines-apuv2: reduce indiraction in swnode assignment
  2026-04-29  9:46 [PATCH] platform/x86: pcengines-apuv2: reduce indiraction in swnode assignment Bartosz Golaszewski
@ 2026-04-29 18:56 ` Dmitry Torokhov
  0 siblings, 0 replies; 2+ messages in thread
From: Dmitry Torokhov @ 2026-04-29 18:56 UTC (permalink / raw)
  To: Bartosz Golaszewski
  Cc: Hans de Goede, Ilpo Järvinen, Bartosz Golaszewski,
	platform-driver-x86, linux-kernel

On Wed, Apr 29, 2026 at 11:46:01AM +0200, Bartosz Golaszewski wrote:
> struct platform_device_info now has the 'swnode' field allowing passing
> software nodes directly to platform_device_register_full() without going
> through software_node_fwnode(). It supports both registered and
> unregistered software nodes. Use it to drop one layer of indirection.
> 
> Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@oss.qualcomm.com>

Reviewed-by: Dmitry Torokhov <dmitry.torokhov@gmail.com>

Thanks.

-- 
Dmitry

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

end of thread, other threads:[~2026-04-29 18:56 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-04-29  9:46 [PATCH] platform/x86: pcengines-apuv2: reduce indiraction in swnode assignment Bartosz Golaszewski
2026-04-29 18:56 ` Dmitry Torokhov

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