summaryrefslogtreecommitdiff
path: root/include/dm
diff options
context:
space:
mode:
authorPrzemyslaw Marczak <p.marczak@samsung.com>2015-04-20 13:32:33 +0200
committerSimon Glass <sjg@chromium.org>2015-04-22 11:03:16 -0600
commit6e0c4880c877fae9ecfc4135b923e167d981e5e3 (patch)
tree794567ac9f4a88b43cad4ea457ebedf19818f87f /include/dm
parent794d521917eab07651248174a81ba51cd265d9dc (diff)
downloadu-boot-imx-6e0c4880c877fae9ecfc4135b923e167d981e5e3.zip
u-boot-imx-6e0c4880c877fae9ecfc4135b923e167d981e5e3.tar.gz
u-boot-imx-6e0c4880c877fae9ecfc4135b923e167d981e5e3.tar.bz2
dm: test: Add tests for get/find uclass's device by name
This commit introduces simple tests for functions: - uclass_find_device_by_name() - uclass_get_device_by_name() Tests added by this commit: - Test: dm_test_uclass_devices_find_by_name: for uclass id: UCLASS_TEST_FDT * get uclass's devices by uclass_find_first/next_device() each as 'testdev', * for each returned device, call: uclass_find_device_by_name(), with previously returned device's name as an argument ('testdev->name'). * for the found device ('founddev') check if: * founddev != NULL * testdev == founddev * testdev->name == founddev->name (by strcmp) - Test: dm_test_uclass_devices_get_by_name: for uclass id: UCLASS_TEST_FDT * get uclass's devices by uclass_get_first/next_device() each as 'testdev', * for each returned device, call: uclass_get_device_by_name(), with previously returned device's name as an argument ('testdev->name'). * for the found device ('founddev') check if: * founddev != NULL * founddev is active * testdev == founddev * testdev->name == founddev->name (by strcmp) 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 'include/dm')
0 files changed, 0 insertions, 0 deletions