/* @blob: Device tree blob holding state @node: Node to write our state into  */
static int sandbox_tpm_write_state(void *blob, int node)
/* @blob: Device tree blob holding state @node: Node to write our state into  */
static int sandbox_tpm_write_state(void *blob, int node)
{
	int i;
	for (i = 0; i < NV_SEQ_COUNT; i++) {
		char prop_name[20];
		if (g_state.nvdata[i].present) {
			sprintf(prop_name, "nvdata%d", i);
			fdt_setprop(blob, node, prop_name,
				    g_state.nvdata[i].data, NV_DATA_SIZE);
		}
	}
	return 0;
}