diff options
author | Simon Glass <sjg@chromium.org> | 2020-12-23 08:11:17 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2021-01-05 12:24:40 -0700 |
commit | 3f8760824e028f5710e3d8ec029c8cc9fade1729 (patch) | |
tree | cf1a90e36a42595f83b20655881657ad79cb5d28 /include/dm/test.h | |
parent | 6d1a8ebefb8461f93e12b6e62efe36ca0a69e6d4 (diff) | |
download | u-boot-3f8760824e028f5710e3d8ec029c8cc9fade1729.tar.gz |
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/test.h')
-rw-r--r-- | include/dm/test.h | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/include/dm/test.h b/include/dm/test.h index b2adce730ad..cbe1b57d95f 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 */ |