Searched hist:"2 c3c84fc7fd0ab439baf1e634c8b5504daa40db4" (Results 1 – 2 of 2) sorted by relevance
| /rk3399_rockchip-uboot/test/dm/ |
| H A D | test-fdt.c | 2c3c84fc7fd0ab439baf1e634c8b5504daa40db4 Thu Feb 06 16:54:49 UTC 2020 Simon Glass <sjg@chromium.org> UPSTREAM: dm: core: Allow iterating devices without uclass_get()
At present we have uclass_foreach_dev() which requires that uclass_get() be called beforehand to find the uclass. This is good if we suspect that that function might fail, but often we know that the uclass is available.
Add a new helper which does this uclass_get() automatically, so that only the uclass ID is needed.
Change-Id: I3106b199653bf8a32d2d1a0025b77261881716fc Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> (cherry picked from commit 3cf0fba4ff862d833545f82fb2209ff3c79d17b5) Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
|
| /rk3399_rockchip-uboot/include/dm/ |
| H A D | uclass.h | 2c3c84fc7fd0ab439baf1e634c8b5504daa40db4 Thu Feb 06 16:54:49 UTC 2020 Simon Glass <sjg@chromium.org> UPSTREAM: dm: core: Allow iterating devices without uclass_get()
At present we have uclass_foreach_dev() which requires that uclass_get() be called beforehand to find the uclass. This is good if we suspect that that function might fail, but often we know that the uclass is available.
Add a new helper which does this uclass_get() automatically, so that only the uclass ID is needed.
Change-Id: I3106b199653bf8a32d2d1a0025b77261881716fc Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Bin Meng <bmeng.cn@gmail.com> (cherry picked from commit 3cf0fba4ff862d833545f82fb2209ff3c79d17b5) Signed-off-by: Cody Xie <cody.xie@rock-chips.com>
|