dm: core: Add a function to find the first inactive child
authorSimon Glass <sjg@chromium.org>
Mon, 1 Oct 2018 18:22:07 +0000 (12:22 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 9 Oct 2018 10:40:27 +0000 (04:40 -0600)
commitcdb6aa0afb52da34306c4339f2f4d6cbd3b0ad02
tree4940b03e27947c496c460da6df96d719fe29dedc
parent9f15cc14bf88a9ee8d7b1fbf607cde22923889d6
dm: core: Add a function to find the first inactive child

Some devices have children and want to press an existing inactive child
into service when needed. Add a function to help with this.

Signed-off-by: Simon Glass <sjg@chromium.org>
drivers/core/device.c
include/dm/device.h
test/dm/core.c