From 68dcc0ee10317096d164dadd2623a3a0be4352bb Mon Sep 17 00:00:00 2001 From: Dominik Ermel Date: Thu, 5 Jan 2023 13:38:23 +0000 Subject: [PATCH] zephyr: single_loader: Switch to flash_area_get_sector Use flash_area_get_sector instead of flash_area_sector_from_off. Signed-off-by: Dominik Ermel --- boot/zephyr/single_loader.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/boot/zephyr/single_loader.c b/boot/zephyr/single_loader.c index 253015e9..97c212a7 100644 --- a/boot/zephyr/single_loader.c +++ b/boot/zephyr/single_loader.c @@ -350,7 +350,7 @@ decrypt_image_inplace(const struct flash_area *fa_p, memset(&_bs, 0, sizeof(struct boot_status)); /* Get size from last sector to know page/sector erase size */ - rc = flash_area_sector_from_off(boot_status_off(fa_p), §or); + rc = flash_area_get_sector(fap, boot_status_off(fa_p), §or); image_index = BOOT_CURR_IMG(state);