diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-16 21:20:11 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2020-12-18 20:32:21 -0700 |
commit | ba0e7daeefa1ae9821c9fb3103ea7c3ddd2dd2f8 (patch) | |
tree | 63baed314a0498dd96ef5d0355f47d90878e7ad2 /test | |
parent | 1c55b229232c87751fbe3d2b378b496352960816 (diff) | |
download | u-boot-ba0e7daeefa1ae9821c9fb3103ea7c3ddd2dd2f8.zip u-boot-ba0e7daeefa1ae9821c9fb3103ea7c3ddd2dd2f8.tar.gz u-boot-ba0e7daeefa1ae9821c9fb3103ea7c3ddd2dd2f8.tar.bz2 |
dm: core: Switch binding to use new sequence numbers
Update the core logic to use the new approach. For now the old code is
left as is. Update one test so it still passes.
Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/bus.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/test/dm/bus.c b/test/dm/bus.c index 9e81b1d..77555e5 100644 --- a/test/dm/bus.c +++ b/test/dm/bus.c @@ -159,9 +159,10 @@ static int dm_test_bus_children_funcs(struct unit_test_state *uts) ut_asserteq(-ENODEV, device_find_child_by_seq(bus, -1, true, &dev)); ut_assertok(device_find_child_by_seq(bus, 0, true, &dev)); ut_assert(!(dev->flags & DM_FLAG_ACTIVATED)); - ut_asserteq(-ENODEV, device_find_child_by_seq(bus, 0, false, &dev)); + ut_asserteq(0, device_find_child_by_seq(bus, 0, false, &dev)); ut_assertok(device_get_child_by_seq(bus, 0, &dev)); ut_assert(dev->flags & DM_FLAG_ACTIVATED); + ut_asserteq(0, device_find_child_by_seq(bus, 0, false, &dev)); /* There is no device with sequence number 2 */ ut_asserteq(-ENODEV, device_find_child_by_seq(bus, 2, false, &dev)); |