/* ixgbe_update_eeprom_checksum_generic - Updates the EEPROM checksum @hw: pointer to hardware structure  */
s32 ixgbe_update_eeprom_checksum_generic(struct ixgbe_hw *hw)
/* ixgbe_update_eeprom_checksum_generic - Updates the EEPROM checksum @hw: pointer to hardware structure  */
s32 ixgbe_update_eeprom_checksum_generic(struct ixgbe_hw *hw)
{
	s32 status;
	u16 checksum;
	status = hw->eeprom.ops.read(hw, 0, &checksum);
	if (status == 0) {
		checksum = ixgbe_calc_eeprom_checksum(hw);
		status = hw->eeprom.ops.write(hw, IXGBE_EEPROM_CHECKSUM,
		                            checksum);
	} else {
		hw_dbg(hw, "EEPROM read failed\n");
	}
	return status;
}