fastboot: getvar: Refactor fastboot_*_get_part_info() usage
authorSam Protsenko <semen.protsenko@linaro.org>
Thu, 13 Jun 2019 18:11:08 +0000 (21:11 +0300)
committerMarek Vasut <marex@denx.de>
Fri, 14 Jun 2019 10:39:54 +0000 (12:39 +0200)
commitf23a87d5811e38ec88627e0cbace665c22fb7025
tree6a5ba67c810db40f39f16305fd592384dd3fbc0e
parentcacb03e490bdf46897f57582c2b31a4783e79aa0
fastboot: getvar: Refactor fastboot_*_get_part_info() usage

Extract fastboot_*_get_part_info() usage for MMC and NAND into
getvar_get_part_info() function, as it will be needed further in other
functions. This way we can avoid code duplication and mess with
preprocessor directives across all points of usage.

Signed-off-by: Sam Protsenko <semen.protsenko@linaro.org>
Reviewed-by: Lukasz Majewski <lukma@denx.de>
Reviewed-by: Igor Opaniuk <igor.opaniuk@toradex.com>
drivers/fastboot/fb_getvar.c