* [PATCH] platform/x86: pcengines-apuv2: reduce indiraction in swnode assignment
@ 2026-04-29 9:46 Bartosz Golaszewski
2026-04-29 18:56 ` Dmitry Torokhov
2026-05-08 18:15 ` Ilpo Järvinen
0 siblings, 2 replies; 3+ 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] 3+ 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
2026-05-08 18:15 ` Ilpo Järvinen
1 sibling, 0 replies; 3+ 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] 3+ 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
@ 2026-05-08 18:15 ` Ilpo Järvinen
1 sibling, 0 replies; 3+ messages in thread
From: Ilpo Järvinen @ 2026-05-08 18:15 UTC (permalink / raw)
To: Hans de Goede, Dmitry Torokhov, Bartosz Golaszewski
Cc: Bartosz Golaszewski, platform-driver-x86, linux-kernel
On Wed, 29 Apr 2026 11:46:01 +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.
>
>
Thank you for your contribution, it has been applied to my local
review-ilpo-next branch. Note it will show up in the public
platform-drivers-x86/review-ilpo-next branch only once I've pushed my
local branch there, which might take a while.
The list of commits applied:
[1/1] platform/x86: pcengines-apuv2: reduce indiraction in swnode assignment
commit: fa84425e53c43c8a17ac2af2c8f99202f4e1ee7e
--
i.
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2026-05-08 18:15 UTC | newest]
Thread overview: 3+ 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
2026-05-08 18:15 ` Ilpo Järvinen
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.