]> git.baikalelectronics.ru Git - uboot.git/commit
blk: Support iteration
authorSimon Glass <sjg@chromium.org>
Mon, 5 Jul 2021 22:32:59 +0000 (16:32 -0600)
committerSimon Glass <sjg@chromium.org>
Wed, 21 Jul 2021 16:27:35 +0000 (10:27 -0600)
commitac36c2023832778a519028cddf5309ec697adcb5
tree45bb72df5da51250ee48c59efe11c9369bb418e2
parentaafb183b87c23f7edd9c8ecd105bb00a9d0c7c2b
blk: Support iteration

It is useful to be able to iterate over block devices. Typically there
are fixed and removable devices. For security reasons it is sometimes
useful to ignore removable devices since they are under user control.

Add iterators which support selecting the block-device type.

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