]> git.sur5r.net Git - u-boot/commit
disk/part.c: Expose list of available block drivers
authorAlexander Graf <agraf@suse.de>
Fri, 4 Mar 2016 00:09:56 +0000 (01:09 +0100)
committerTom Rini <trini@konsulko.com>
Tue, 15 Mar 2016 19:19:22 +0000 (15:19 -0400)
commitd96a98045aa5aadba473d89872a987ac50a023ea
tree7db2dd1b04ded93afd7dc3046ac20959a0c2a766
parent19503c3117ace4bfab86d317ee459812387e983b
disk/part.c: Expose list of available block drivers

We have a pretty nice and generic interface to ask for a specific block
device. However, that one is still based around the magic notion that
we know the driver name.

In order to be able to write fully generic disk access code, expose the
currently internal list to other source files so that they can scan through
all available block drivers.

Signed-off-by: Alexander Graf <agraf@suse.de>
Reviewed-by: Simon Glass <sjg@chromium.org>
Tested-by: Simon Glass <sjg@chromium.org>
disk/part.c
include/part.h