/* eeprom_emu_page_invalidate: invalidate a page by writing all zeros at the end  */
static int eeprom_emu_page_invalidate(const struct device *dev, off_t offset)
/* eeprom_emu_page_invalidate: invalidate a page by writing all zeros at the end  */
static int eeprom_emu_page_invalidate(const struct device *dev, off_t offset)
{
	const struct eeprom_emu_config *dev_config = dev->config;
	uint8_t buf[dev_config->flash_cbs];
	LOG_DBG("Invalidating page at [0x%tx]", (ptrdiff_t)offset);
	memset(buf, 0x00, sizeof(buf));
	offset += (dev_config->page_size - sizeof(buf));
	return eeprom_emu_flash_write(dev, offset, buf, sizeof(buf));
}