/* returns: 0, on success -ENOENT if the property could not be found  */
int fit_image_get_data_size(const void *fit, int noffset, int *data_size)
/* returns: 0, on success -ENOENT if the property could not be found  */
int fit_image_get_data_size(const void *fit, int noffset, int *data_size)
{
	const fdt32_t *val;
	val = fdt_getprop(fit, noffset, FIT_DATA_SIZE_PROP, NULL);
	if (!val)
		return -ENOENT;
	*data_size = fdt32_to_cpu(*val);
	return 0;
}