dm: blk: Add a easier way to create a named block device
authorSimon Glass <sjg@chromium.org>
Sun, 1 May 2016 17:36:29 +0000 (11:36 -0600)
committerSimon Glass <sjg@chromium.org>
Tue, 17 May 2016 15:54:43 +0000 (09:54 -0600)
commit9107c973d32c72a6f7ac909fc4a6884a42e4e607
tree29ebd7fae208b74ddaf86414847e3b1c70fbb2dd
parent52138fd4072b64448855eac4c2c9815b46f5b43c
dm: blk: Add a easier way to create a named block device

Add a function that automatically builds the device name given the parent
and a supplied string. Most callers will want to do this, so putting this
functionality in one place makes more sense.

Signed-off-by: Simon Glass <sjg@chromium.org>
common/usb_storage.c
drivers/block/blk-uclass.c
include/blk.h