/* This function reads back parameters of the flash as reported by the EC */
int cros_ec_read_flashinfo(struct udevice *dev, struct ec_response_flash_info *info)
/* This function reads back parameters of the flash as reported by the EC */
int cros_ec_read_flashinfo(struct udevice *dev, struct ec_response_flash_info *info)
{
	int ret;
	ret = ec_command(dev, EC_CMD_FLASH_INFO, 0,
			 NULL, 0, info, sizeof(*info));
	if (ret < 0)
		return ret;
	return ret < sizeof(*info) ? -1 : 0;
}