summaryrefslogtreecommitdiff
path: root/test/dm/phy.c
diff options
context:
space:
mode:
authorPatrice Chotard <patrice.chotard@st.com>2020-07-28 09:13:33 +0200
committerSimon Glass <sjg@chromium.org>2020-08-22 07:58:39 -0600
commit1f0d5885dbbd669400e5d8cfdb3998c7945e0a7a (patch)
tree580524762e103486e52d945d518322f404b641a3 /test/dm/phy.c
parentcfa3ed4390c158b527bdb2ceceacf7eabae1b01e (diff)
sandbox: dts: Add compatible string for bind-test node
Usage of lists_bind_fdt() in bind command imposes to add a compatible string for bind-test node. Others impacts are: - bind-test node is binded at sandbox start, so no need to bind it in test_bind_unbind_with_node() test. - As explained just above, after sandbox start, now a phy exist. In test/dm/phy.c, it was verified that a third phy didn't exist, now we must verified that a fourth phy doesn't exist. Signed-off-by: Patrice Chotard <patrice.chotard@st.com> Reviewed-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'test/dm/phy.c')
-rw-r--r--test/dm/phy.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/phy.c b/test/dm/phy.c
index 75d05a14c0..ecbd47bf12 100644
--- a/test/dm/phy.c
+++ b/test/dm/phy.c
@@ -47,7 +47,7 @@ static int dm_test_phy_base(struct unit_test_state *uts)
ut_assert(phy2.dev != phy3.dev);
/* Try to get a non-existing phy */
- ut_asserteq(-ENODEV, uclass_get_device(UCLASS_PHY, 3, &dev));
+ ut_asserteq(-ENODEV, uclass_get_device(UCLASS_PHY, 4, &dev));
ut_asserteq(-ENODATA, generic_phy_get_by_name(parent,
"phy_not_existing", &phy1_method1));