summaryrefslogtreecommitdiff
path: root/test/dm/spi.c
diff options
context:
space:
mode:
authorTom Rini <trini@konsulko.com>2020-01-27 19:57:13 -0500
committerTom Rini <trini@konsulko.com>2020-01-27 19:57:13 -0500
commit86e42b3629c212d98c7a17e36bd6c0702dcd864c (patch)
treea7c9c9fb26d88d3bab2f529ddda92a03caf6996e /test/dm/spi.c
parent0ab16bf3b72c3f89b29048fcd6d11a51aedd786d (diff)
parentdaa9405d7c4bdbabe257b03d268277f249bb3297 (diff)
Merge branch 'master' of https://gitlab.denx.de/u-boot/custodians/u-boot-spi
- spi cs accessing slaves (Bin Meng) - spi prevent overriding established bus (Marcin Wojtas) - support speed in spi command (Marek Vasut) - add W25N01GV spinand (Robert Marko) - move cadence_qspi to use spi-mem (Vignesh Raghavendra) - add octal mode (Vignesh Raghavendra)
Diffstat (limited to 'test/dm/spi.c')
-rw-r--r--test/dm/spi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/test/dm/spi.c b/test/dm/spi.c
index ffd789cd7fb..8e417acc5f2 100644
--- a/test/dm/spi.c
+++ b/test/dm/spi.c
@@ -77,10 +77,10 @@ static int dm_test_spi_find(struct unit_test_state *uts)
/* We should be able to add something to another chip select */
ut_assertok(sandbox_sf_bind_emul(state, busnum, cs_b, bus, node,
"name"));
- ut_assertok(spi_get_bus_and_cs(busnum, cs_b, speed, mode,
+ ut_asserteq(-EINVAL, spi_get_bus_and_cs(busnum, cs_b, speed, mode,
"spi_flash_std", "name", &bus, &slave));
- ut_assertok(spi_cs_info(bus, cs_b, &info));
- ut_asserteq_ptr(info.dev, slave->dev);
+ ut_asserteq(-EINVAL, spi_cs_info(bus, cs_b, &info));
+ ut_asserteq_ptr(NULL, info.dev);
/*
* Since we are about to destroy all devices, we must tell sandbox