/* This function should be called after each update to the EEPROM structure, to make sure the CRC is always correct.  */
static void update_crc(void)
/* This function should be called after each update to the EEPROM structure, to make sure the CRC is always correct.  */
static void update_crc(void)
{
	u32 crc, crc_offset = offsetof(struct eeprom, crc);
	crc = crc32(0, (void *)&e, crc_offset);
	e.crc = cpu_to_be32(crc);
}