Flash, FRAM and EEPROM driver for STM32 QUAD-/OCTOSPI interface
[fw/openocd] / src / target / image.c
index 0b7debaeff2a2816e493be086980b202033c7161..20c6d77b28213e946640e9b6d359544908f22eea 100644 (file)
@@ -1019,7 +1019,7 @@ void image_close(struct image *image)
        image->sections = NULL;
 }
 
-int image_calculate_checksum(uint8_t *buffer, uint32_t nbytes, uint32_t *checksum)
+int image_calculate_checksum(const uint8_t *buffer, uint32_t nbytes, uint32_t *checksum)
 {
        uint32_t crc = 0xffffffff;
        LOG_DEBUG("Calculating checksum");