]> git.sur5r.net Git - u-boot/commit
disk: introduce get_device()
authorStephen Warren <swarren@nvidia.com>
Fri, 21 Sep 2012 09:50:56 +0000 (09:50 +0000)
committerTom Rini <trini@ti.com>
Tue, 25 Sep 2012 21:49:33 +0000 (14:49 -0700)
commit2023e60861283ee808950a558e14b45be8776bf4
treea8ddbbf0fdfd51fb59f26f460626eaa44d584a05
parent650f36641ccfe1c2444277891da7c76cdde99f8b
disk: introduce get_device()

This patch introduces function get_device(). This looks up a
block_dev_desc_t from an interface name (e.g. mmc) and device number
(e.g. 0). This function is essentially the non-partition-specific
prefix of get_device_and_partition().

Signed-off-by: Stephen Warren <swarren@nvidia.com>
disk/part.c
include/part.h