diff --git a/subsys/storage/flash_map/flash_map.c b/subsys/storage/flash_map/flash_map.c index cf07db44bbd..7e0c6f6143e 100644 --- a/subsys/storage/flash_map/flash_map.c +++ b/subsys/storage/flash_map/flash_map.c @@ -276,7 +276,7 @@ int flash_area_check_int_sha256(const struct flash_area *fa, { unsigned char hash[TC_SHA256_DIGEST_SIZE]; struct tc_sha256_state_struct sha; - struct device *dev; + const struct device *dev; int to_read; int pos; int rc;