target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c
static int fit_image_get_data_offset(const void *fit, int noffset, int *data_offset)
{
	const fdt32_t *val;

	val = fdt_getprop(fit, noffset, FIT_DATA_OFFSET_PROP, NULL);
	if (!val)
		return -ENOENT;

	*data_offset = fdt32_to_cpu(*val);

	return 0;
}
/**
 * Get 'data-offset' property from a given image node.
 *
 * @fit: pointer to the FIT image header
 * @noffset: component image node offset
 * @data_offset: holds the data-offset property
 *
 * returns:
 *     0, on success
 *     -ENOENT if the property could not be found
 */
Get 'data-offset' property from a given image node.
@fit: pointer to the FIT image header
@noffset: component image node offset
@data_offset: holds the data-offset property

0, on success
-ENOENT if the property could not be found
Get ' data - offset ' property from a given image node . @fit : pointer to the FIT image header @noffset : component image node offset @data_offset : holds the data - offset property 0 on success - ENOENT if the property could not be found
static int fit_image_get_data_offset(const void *fit, int noffset, int *data_offset)
{
	const fdt32_t *val;
	val = fdt_getprop(fit, noffset, FIT_DATA_OFFSET_PROP, NULL);
	if (!val)
		return -ENOENT;
	*data_offset = fdt32_to_cpu(*val);
	return 0;
}
static int fit_image_get_data_offset ( const void * fit , int noffset , int * data_offset ) { const fdt32_t * val ; val = fdt_getprop ( fit , noffset , FIT_DATA_OFFSET_PROP , NULL ) ; if ( ! val ) return - ENOENT ; * data_offset = fdt32_to_cpu ( * val ) ; return 0 ; }
Get 'data-offset' property from a given image node.
Get ' data - offset ' property from a given image node .