software node: Introduce device_add_software_node()
authorHeikki Krogerus <heikki.krogerus@linux.intel.com>
Fri, 15 Jan 2021 09:49:11 +0000 (12:49 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 15 Jan 2021 15:06:42 +0000 (16:06 +0100)
commite68d0119e3284334de5650a1ac42ef4e179f895e
treed7e8e306e030e3e8db94985b6fd4641d53a9141d
parentc86cad04dcc8cc07e0befece5e87175c5c71dd4c
software node: Introduce device_add_software_node()

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.

Acked-by: Felipe Balbi <balbi@kernel.org>
Signed-off-by: Heikki Krogerus <heikki.krogerus@linux.intel.com>
Link: https://lore.kernel.org/r/20210115094914.88401-2-heikki.krogerus@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/base/swnode.c
include/linux/property.h