From 67a7b43fc9da957057bc3e83f286ef3cc434571b Mon Sep 17 00:00:00 2001 From: Kumar Gala Date: Fri, 8 Feb 2019 12:47:50 -0600 Subject: [PATCH] dfu: img_util: Convert FLASH_WRITE_BLOCK_SIZE to DT_ Use DT_FLASH_WRITE_BLOCK_SIZE prefixed defined instead of FLASH_WRITE_BLOCK_SIZE as the non-DT version is deprecated. Signed-off-by: Kumar Gala --- subsys/dfu/img_util/flash_img.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/subsys/dfu/img_util/flash_img.c b/subsys/dfu/img_util/flash_img.c index c9438366d50..9cb422ffc2e 100644 --- a/subsys/dfu/img_util/flash_img.c +++ b/subsys/dfu/img_util/flash_img.c @@ -18,9 +18,9 @@ LOG_MODULE_REGISTER(LOG_MODULE_NAME); #include #include -BUILD_ASSERT_MSG((CONFIG_IMG_BLOCK_BUF_SIZE % FLASH_WRITE_BLOCK_SIZE == 0), +BUILD_ASSERT_MSG((CONFIG_IMG_BLOCK_BUF_SIZE % DT_FLASH_WRITE_BLOCK_SIZE == 0), "CONFIG_IMG_BLOCK_BUF_SIZE is not a multiple of " - "FLASH_WRITE_BLOCK_SIZE"); + "DT_FLASH_WRITE_BLOCK_SIZE"); static bool flash_verify(const struct flash_area *fa, off_t offset, u8_t *data, size_t len)