[PATCH 09/20] dm: test: Add a check that all devices have a dev value
Simon Glass
sjg at chromium.org
Fri Oct 30 04:34:39 CET 2020
With of-platdata, the driver_info struct is updated with the device
pointer when it is bound. This makes it easy for a device to be found by
its driver info with the device_get_by_driver_info() function.
Add a test that all devices (except the root device) have such an entry.
Fix a bug that the function does not set *devp to NULL on failure, which
the documentation asserts.
Signed-off-by: Simon Glass <sjg at chromium.org>
---
drivers/core/device.c | 1 +
test/dm/of_platdata.c | 81 +++++++++++++++++++++++++++++++++++++++++++
2 files changed, 82 insertions(+)
Applied to u-boot-dm, thanks!
More information about the U-Boot
mailing list