/* eeprom_emu_get_address: read the address from a change block  */
static uint32_t eeprom_emu_get_address(const struct device *dev, const uint8_t *blk)
/* eeprom_emu_get_address: read the address from a change block  */
static uint32_t eeprom_emu_get_address(const struct device *dev, const uint8_t *blk)
{
	const struct eeprom_emu_config *dev_config = dev->config;
	uint32_t address = 0U;
	blk += dev_config->flash_cbs / 2;
	for (int i = 0; i < sizeof(address); i++) {
		if (2 * i == dev_config->flash_cbs) {
			break;
		}
		address += ((uint32_t)(*blk) << (8 * i));
		blk++;
	}
	return address;
}