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