]> git.dujemihanovic.xyz Git - u-boot.git/commit
spl: mmc: Adjust args of spl_mmc_find_device()
authorSimon Glass <sjg@chromium.org>
Thu, 22 Aug 2024 13:54:59 +0000 (07:54 -0600)
committerTom Rini <trini@konsulko.com>
Fri, 23 Aug 2024 21:58:41 +0000 (15:58 -0600)
commitc5cb9e548981ee969fb3b4c75dd09b835463295f
tree1b052706860e20f05d16afdd4cc568ccdb719f5f
parent8a369de6ff1456efe60bc7ebefe3d323fece0a37
spl: mmc: Adjust args of spl_mmc_find_device()

At present spl_mmc_load() is the only caller of this function, passing
it a boot_device, an index into the available MMC devices. Pass the
device number instead, since it is known by the caller and simplifies
the code.

Signed-off-by: Simon Glass <sjg@chromium.org>
Reviewed-by: Sean Anderson <seanga2@gmail.com>
Reviewed-by: Quentin Schulz <quentin.schulz@cherry.de>
common/spl/spl_mmc.c