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

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Tue, Aug 25, 2020 at 04:59:50PM +0300, Heikki Krogerus wrote:
> 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.

> +	/* Only one software node per device. */
> +	if (dev_to_swnode(dev))
> +		return -EBUSY;

> +	swnode = dev_to_swnode(dev);
> +	if (!swnode)
> +		return;

Hmm... I didn't find implementation of dev_to_swnode().
What did I miss?

-- 
With Best Regards,
Andy Shevchenko





[Index of Archives]     [Linux IBM ACPI]     [Linux Power Management]     [Linux Kernel]     [Linux Laptop]     [Kernel Newbies]     [Share Photos]     [Security]     [Netfilter]     [Bugtraq]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Samba]     [Video 4 Linux]     [Device Mapper]     [Linux Resources]

  Powered by Linux