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

2020-08-25 Thread Andy Shevchenko
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: > > 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 t

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

2020-08-25 Thread Andy Shevchenko
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. */

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

2020-08-25 Thread Heikki Krogerus
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. Signed-off-by: Heikki Krogerus --- drivers/base/swnode.c| 45 include/lin