summaryrefslogtreecommitdiff
path: root/drivers/hwmon/ltc2947-spi.c
diff options
context:
space:
mode:
authorDaniel Scally <djrscally@gmail.com>2021-01-07 14:28:28 +0100
committerMauro Carvalho Chehab <mchehab+huawei@kernel.org>2021-01-26 19:25:22 +0100
commitd9b1103bc622b20498c1d2fb9c00805b9d6f2921 (patch)
tree6b8d44976bc8088613185548348cc6e3a84b0a64 /drivers/hwmon/ltc2947-spi.c
parentacd418bfcfc415cf5e6414b6d1c6acfec850f290 (diff)
media: software_node: Enforce parent before child ordering of nodes arrays
Registering software_nodes with the .parent member set to point to a currently unregistered software_node has the potential for problems, so enforce parent -> child ordering in arrays passed in to software_node_register_nodes(). Software nodes that are children of another software node should be unregistered before their parent. To allow easy unregistering of an array of software_nodes ordered parent to child, reverse the order in which software_node_unregister_nodes() unregisters software_nodes. Suggested-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com> Reviewed-by: Laurent Pinchart <laurent.pinchart@ideasonboard.com> Signed-off-by: Daniel Scally <djrscally@gmail.com> Reviewed-by: Heikki Krogerus <heikki.krogerus@linux.intel.com> Acked-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Acked-by: Rafael J. Wysocki <rafael.j.wysocki@intel.com> Signed-off-by: Sakari Ailus <sakari.ailus@linux.intel.com> Signed-off-by: Mauro Carvalho Chehab <mchehab+huawei@kernel.org>
Diffstat (limited to 'drivers/hwmon/ltc2947-spi.c')
0 files changed, 0 insertions, 0 deletions