dfu: mmc: use the default MMC device if entity specifies it as -1
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 17 Nov 2020 09:45:46 +0000 (10:45 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Mon, 15 Nov 2021 10:37:12 +0000 (11:37 +0100)
commit4aa975913b9d867f71cbbfc35227e068135fa3ff
tree68b1522e0c19aa06d78d47159996a653b765332d
parenta3afa16a6d82f2381a764eac5d68a33a85cf9f7d
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).

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