summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2020-12-23 18:11:17 +0300
committerSimon Glass <sjg@chromium.org>2021-01-05 22:24:40 +0300
commit3f8760824e028f5710e3d8ec029c8cc9fade1729 (patch)
treecf1a90e36a42595f83b20655881657ad79cb5d28 /include/dm
parent6d1a8ebefb8461f93e12b6e62efe36ca0a69e6d4 (diff)
downloadu-boot-3f8760824e028f5710e3d8ec029c8cc9fade1729.tar.xz
test: Use a simple variable to record removed device
At present the entire test state is effective passed into a test driver just to record which device was removed. This is unnecessary and makes it harder to track what is going on. Use a simple boolean instead. Also drop the unused 'removed' member while we are here. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'include/dm')
-rw-r--r--include/dm/test.h2
1 files changed, 0 insertions, 2 deletions
diff --git a/include/dm/test.h b/include/dm/test.h
index b2adce730a..cbe1b57d95 100644
--- a/include/dm/test.h
+++ b/include/dm/test.h
@@ -134,14 +134,12 @@ extern struct unit_test_state global_dm_test_state;
* @testdev: Test device
* @force_fail_alloc: Force all memory allocs to fail
* @skip_post_probe: Skip uclass post-probe processing
- * @removed: Used to keep track of a device that was removed
*/
struct dm_test_state {
struct udevice *root;
struct udevice *testdev;
int force_fail_alloc;
int skip_post_probe;
- struct udevice *removed;
};
/* Declare a new driver model test */