dfu: mmc: use the default MMC device if entity specifies it as -1
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 22 Dec 2020 10:32:20 +0000 (11:32 +0100)
committerMarek Vasut <marex@denx.de>
Sun, 31 Jan 2021 13:08:56 +0000 (14:08 +0100)
commitf21358ad6cb5d39fff432fa0af0c4fd24288b2b7
treef704a6adf705e6b5606cc1c9a5e56aaa5b9c73c7
parentc954ff5fbffbb164f1a34127eae78e7fd86180d0
dfu: mmc: use the default MMC device if entity specifies it as -1

Use the default MMC device set in the command line if entity specifies it
as -1. This allows to use the same dfu_alt_info string for different MMC
devices (like embedded eMMC and external SD card if data layout is the
same on both devices).

Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
drivers/dfu/dfu_mmc.c