]> git.baikalelectronics.ru Git - uboot.git/commit
test: Use a simple variable to record removed device
authorSimon Glass <sjg@chromium.org>
Wed, 23 Dec 2020 15:11:17 +0000 (08:11 -0700)
committerSimon Glass <sjg@chromium.org>
Tue, 5 Jan 2021 19:24:40 +0000 (12:24 -0700)
commitbb33c7844b581f70a50e54c208aeecb4a0e8bb05
treecf1a90e36a42595f83b20655881657ad79cb5d28
parentbf535a1976823518dffe053aa738f7bcdc626c8c
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>
include/dm/test.h
test/dm/bus.c