summaryrefslogtreecommitdiff
path: root/include/test
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-23 18:11:18 +0300
committerSimon Glass <sjg@chromium.org>2021-01-05 22:24:40 +0300
commit079ac59586fa1e0c69020e74e4f16cbfdf82232d (patch)
tree843659b2cd2956374d40b34747d3374a4f7d6c69 /include/test
parent3f8760824e028f5710e3d8ec029c8cc9fade1729 (diff)
downloadu-boot-079ac59586fa1e0c69020e74e4f16cbfdf82232d.tar.xz
test: Move some test drivers into their own file
At present several test drivers are part of the test file itself. Some of these are useful for of-platdata tests. Separate them out so we can use them for other things also. A few adjustments are needed so this driver can build for sandbox_spl as well. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/test')
-rw-r--r--include/test/test.h9
1 files changed, 9 insertions, 0 deletions
diff --git a/include/test/test.h b/include/test/test.h
index 03e29290bf..3fdaa2b5e5 100644
--- a/include/test/test.h
+++ b/include/test/test.h
@@ -95,6 +95,15 @@ enum {
};
/**
+ * testbus_get_clear_removed() - Test function to obtain removed device
+ *
+ * This is used in testbus to find out which device was removed. Calling this
+ * function returns a pointer to the device and then clears it back to NULL, so
+ * that a future test can check it.
+ */
+struct udevice *testbus_get_clear_removed(void);
+
+/**
* dm_test_main() - Run driver model tests
*
* Run all the available driver model tests, or a selection