Thread (10 messages) 10 messages, 3 authors, 2020-09-28

Re: [PATCH 2/3] software node: Introduce device_add_software_node()

From: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Date: 2020-08-25 14:34:27
Also in: linux-acpi, lkml

On Tue, Aug 25, 2020 at 05:32:28PM +0300, Andy Shevchenko wrote:
On Tue, Aug 25, 2020 at 04:59:50PM +0300, Heikki Krogerus wrote:
quoted
This helper will register a software node and then assign
it to device at the same time. The function will also make
sure that the device can't have more than one software node.
quoted
+	/* Only one software node per device. */
+	if (dev_to_swnode(dev))
+		return -EBUSY;
quoted
+	swnode = dev_to_swnode(dev);
+	if (!swnode)
+		return;
Hmm... I didn't find implementation of dev_to_swnode().
What did I miss?
Now found, I was looking into header, but it's defined in the c-file in
previous patch.

-- 
With Best Regards,
Andy Shevchenko

Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help