/* eeprom_emu_set_change: create change blocks from data in blk and address  */
static void eeprom_emu_set_change(const struct device *dev, const uint32_t address, const uint8_t *data, uint8_t *blk)
/* eeprom_emu_set_change: create change blocks from data in blk and address  */
static void eeprom_emu_set_change(const struct device *dev, const uint32_t address, const uint8_t *data, uint8_t *blk)
{
	const struct eeprom_emu_config *dev_config = dev->config;
	for (int i = 0; i < (dev_config->flash_cbs / 2); i++) {
		(*blk++) = (*data++);
	}
	for (int i = 0; i < (dev_config->flash_cbs / 2); i++) {
		if (i < sizeof(address)) {
			(*blk++) = (uint8_t)(((address >> (8 * i)) & 0xff));
		} else {
			(*blk++) = 0xff;
		}
	}
}