Re: [PATCH v2 02/19] driver core: platform: provide platform_device_set_of_node()

From
Manuel Ebner <hidden>
Date
2026-07-01 15:06:19
Also in
dri-devel, driver-core, imx, intel-xe, linux-arm-msm, linux-devicetree, linux-i2c, linux-iommu, linux-mips, linux-pm, linux-sound, linux-usb, linuxppc-dev, lkml, platform-driver-x86
Reply to
Bartosz Golaszewski, 2026-06-30
On Tue, 2026-06-30 at 09:22 -0400, Bartosz Golaszewski wrote:
On Tue, 30 Jun 2026 13:37:54 +0200, Manuel Ebner [off-list ref] said:
quoted
On Mon, 2026-06-29 at 11:12 +0200, Bartosz Golaszewski wrote:
quoted
[...]

+/**
+ * platform_device_set_of_node - assign an OF node to device
+ * @pdev: platform device to add the node for
+ * @np: new device node
+ *
+ * Assign an OF node to this platform device. Internally keep track of the
+ * reference count. Devices created with platform_device_alloc() must use this
+ * function instead of assigning the node manually.
Doesn't it make sense to add a remark to the kernel doc of platform_device_alloc()?

Thanks
 Manuel
quoted
 [...]
Sure, will do in the next iteration.
then you can add
Reviewed-by: Manuel Ebner <redacted>

 Manuel
Bart
Thread (30 messages) 30 messages, 7 authors, last reply 2026-07-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help