dfu: rename dfu_tftp_write() to dfu_write_by_name()
authorAKASHI Takahiro <takahiro.akashi@linaro.org>
Thu, 29 Oct 2020 04:47:41 +0000 (13:47 +0900)
committerHeinrich Schuchardt <xypron.glpk@gmx.de>
Fri, 30 Oct 2020 13:20:27 +0000 (14:20 +0100)
commit045fd8b13dc7b08a309043c28fc764c8fd2fde14
tree3fe5fad33b5adfacd8b694659290631f3b18f029
parent31393564462ac706c080fbd9625382540a41d27c
dfu: rename dfu_tftp_write() to dfu_write_by_name()

This function is essentially independent from tftp, and will also be
utilised in implementing UEFI capsule update in a later commit.
So just give it a more generic name.
In addition, a new configuration option, CONFIG_DFU_WRITE_ALT, was
introduced so that the file will be compiled with different options,
particularly one added in a later commit.

Signed-off-by: AKASHI Takahiro <takahiro.akashi@linaro.org>
Reviewed-by: Tom Rini <trini@konsulko.com>
common/update.c
drivers/dfu/Kconfig
drivers/dfu/Makefile
drivers/dfu/dfu_alt.c [moved from drivers/dfu/dfu_tftp.c with 66% similarity]
include/dfu.h