]> git.dujemihanovic.xyz Git - u-boot.git/commit
dm: blk: Add a function to return the device type
authorSimon Glass <sjg@chromium.org>
Mon, 25 Apr 2022 05:31:03 +0000 (23:31 -0600)
committerTom Rini <trini@konsulko.com>
Mon, 25 Apr 2022 14:00:03 +0000 (10:00 -0400)
commit87571b7f2077c567f8d050abe60ff5578f0b7cd8
tree7a8de897ea1993c5d38117776ef9b8a72550b947
parent026e2136f834feb19acc95efd61e6613f37234de
dm: blk: Add a function to return the device type

Use the uclass name to get the device type for a block device.

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