resource: Unify next_resource() and next_resource_skip_children()
authorAndy Shevchenko <andriy.shevchenko@linux.intel.com>
Tue, 12 Sep 2023 16:53:11 +0000 (19:53 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Thu, 5 Oct 2023 11:58:07 +0000 (13:58 +0200)
commit10dabdf45ed34caaaad97978306fe6e9ee7581d9
tree5a2e37c21f1ec903c49dde73a63001d604d6d0cf
parent441f0dd8fa035a2c7cfe972047bb905d3be05c1b
resource: Unify next_resource() and next_resource_skip_children()

We have the next_resource() is used once and no user for the
next_resource_skip_children() outside of the for_each_resource().

Unify them by adding skip_children parameter to the next_resource().

Signed-off-by: Andy Shevchenko <andriy.shevchenko@linux.intel.com>
Link: https://lore.kernel.org/r/20230912165312.402422-2-andriy.shevchenko@linux.intel.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
kernel/resource.c