[U-Boot] [PATCH V4 04/10] dm: test: Add tests for get/find uclass devices

Simon Glass sjg at chromium.org
Mon Apr 20 05:22:51 CEST 2015


On 15 April 2015 at 05:07, Przemyslaw Marczak <p.marczak at samsung.com> wrote:
> This commit introduces simple tests for functions:
> - uclass_find_first_device()
> - uclass_find_next_device()
> - uclass_first_device()
> - uclass_next_device()
>
> Tests added by this commit:
> - Test: dm_test_uclass_devices_find:
>   * call uclass_find_first_device(), then check if: (dev != NULL), (ret == 0)
>   * for the rest devices, call uclass_find_next_device() and do the same check
>
> - Test: dm_test_uclass_devices_get:
>   * call uclass_first_device(), then check if:
>     -- (dev != NULL), (ret == 0), device_active()
>   * for the rest devices, call uclass_next_device() and do the same check
>
> Signed-off-by: Przemyslaw Marczak <p.marczak at samsung.com>
> Cc: Simon Glass <sjg at chromium.org>
> Acked-by: Simon Glass <sjg at chromium.org>
> ---
> Changes V3:
> - new commit
>
> Changes V4:
> - add Acked-by

Applied to u-boot-dm, thanks!


More information about the U-Boot mailing list