]> git.baikalelectronics.ru Git - uboot.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)
commitb0d3434e291a501ed84a2eafa62d6d378f21e428
tree7a8de897ea1993c5d38117776ef9b8a72550b947
parentc5e9fc47706539930abb8618f70b4491532862a1
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