dfu: mmc: use the default MMC device if entity specifies it as -1 45/247845/2
authorMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 17 Nov 2020 09:45:46 +0000 (10:45 +0100)
committerMarek Szyprowski <m.szyprowski@samsung.com>
Tue, 17 Nov 2020 10:55:12 +0000 (11:55 +0100)
commit2b23c84139c855ff076f7d67bba58034dfafaf49
tree7975469d91cc67cc8d93671132784ef339729afc
parent2a5f99c30314ca885aeb902fae438db3cc2a04d3
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