commit | d825ea7053779f4b93e869b6c505801a43655a37 | [log] [tgz] |
---|---|---|
author | Simon Glass <sjg@chromium.org> | Sat Oct 03 11:31:31 2020 -0600 |
committer | Simon Glass <sjg@chromium.org> | Thu Oct 29 14:42:18 2020 -0600 |
tree | 72534a9814ba97b05a7f4f54c1fd6d6e103a3796 | |
parent | 64401e7e54d938aec318a8e1a8ea3adb7f937cd0 [diff] |
dm: test: Add a check that all devices have a dev value 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@chromium.org>