diff options
author | Simon Glass <sjg@chromium.org> | 2016-02-29 15:25:43 -0700 |
---|---|---|
committer | Simon Glass <sjg@chromium.org> | 2016-03-14 15:34:50 -0600 |
commit | ebac37cfbfb32ea44704fe032fadd5cf334824b7 (patch) | |
tree | fbe5d116a518343935942c1099e018d155b74427 /test | |
parent | db1d9e78e6f0ea51a698f18abe4cebc5ff39b691 (diff) | |
download | u-boot-imx-ebac37cfbfb32ea44704fe032fadd5cf334824b7.zip u-boot-imx-ebac37cfbfb32ea44704fe032fadd5cf334824b7.tar.gz u-boot-imx-ebac37cfbfb32ea44704fe032fadd5cf334824b7.tar.bz2 |
dm: blk: Rename get_device() to blk_get_device_by_str()
The current name is too generic. The function returns a block device based
on a provided string. Rename it to aid searching and make its purpose
clearer. Also add a few comments.
Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Bin Meng <bmeng.cn@gmail.com>
Tested-by: Stephen Warren <swarren@nvidia.com>
Diffstat (limited to 'test')
-rw-r--r-- | test/dm/usb.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/test/dm/usb.c b/test/dm/usb.c index 25cde68..0996185 100644 --- a/test/dm/usb.c +++ b/test/dm/usb.c @@ -45,7 +45,7 @@ static int dm_test_usb_flash(struct unit_test_state *uts) state_set_skip_delays(true); ut_assertok(usb_init()); ut_assertok(uclass_get_device(UCLASS_MASS_STORAGE, 0, &dev)); - ut_assertok(get_device("usb", "0", &dev_desc)); + ut_assertok(blk_get_device_by_str("usb", "0", &dev_desc)); /* Read a few blocks and look for the string we expect */ ut_asserteq(512, dev_desc->blksz); |