summaryrefslogtreecommitdiffstats
path: root/drivers/core/uclass.c
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-04-15 13:07:20 +0200
committerSimon Glass <sjg@chromium.org>2015-04-22 11:03:14 -0600
commit9e85f13ddc47d253d90411a0645f9fbd8fa6e4b8 (patch)
tree0a231cf9a2fe7c0d4f2053fb134c9c2b2301f41c /drivers/core/uclass.c
parent754e71e850cb09d53543846fbed74cc5a1491c76 (diff)
downloadtalos-obmc-uboot-9e85f13ddc47d253d90411a0645f9fbd8fa6e4b8.tar.gz
talos-obmc-uboot-9e85f13ddc47d253d90411a0645f9fbd8fa6e4b8.zip
dm: test: Add tests for get/find uclass devices
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@samsung.com> Cc: Simon Glass <sjg@chromium.org> Acked-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/core/uclass.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud