target/linux/generic/files/drivers/mtd/mtdsplit/mtdsplit_fit.c
static int fit_image_get_data(const void *fit, int noffset,
		const void **data, size_t *size)
{
	int len;

	*data = fdt_getprop(fit, noffset, FIT_DATA_PROP, &len);
	if (*data == NULL) {
		*size = 0;
		return -1;
	}

	*size = len;
	return 0;
}
/**
 * fit_image_get_data - get data property and its size for a given component image node
 * @fit: pointer to the FIT format image header
 * @noffset: component image node offset
 * @data: double pointer to void, will hold data property's data address
 * @size: pointer to size_t, will hold data property's data size
 *
 * fit_image_get_data() finds data property in a given component image node.
 * If the property is found its data start address and size are returned to
 * the caller.
 *
 * returns:
 *     0, on success
 *     -1, on failure
 */
get data property and its size for a given component image node
@fit: pointer to the FIT format image header
@noffset: component image node offset
@data: double pointer to void, will hold data property's data address
@size: pointer to size_t, will hold data property's data size

fit_image_get_data() finds data property in a given component image node.
If the property is found its data start address and size are returned to
the caller.

0, on success
-1, on failure
get data property and its size for a given component image node @fit : pointer to the FIT format image header @noffset : component image node offset @data : double pointer to void will hold data property ' s data address @size : pointer to size_t will hold data property ' s data size fit_image_get_data () finds data property in a given component image node . If the property is found its data start address and size are returned to the caller . 0 on success - 1 on failure
static int fit_image_get_data(const void *fit, int noffset,
		const void **data, size_t *size)
{
	int len;
	*data = fdt_getprop(fit, noffset, FIT_DATA_PROP, &len);
	if (*data == NULL) {
		*size = 0;
		return -1;
	}
	*size = len;
	return 0;
}
static int fit_image_get_data ( const void * fit , int noffset , const void * * data , size_t * size ) { int len ; * data = fdt_getprop ( fit , noffset , FIT_DATA_PROP , & len ) ; if ( * data == NULL ) { * size = 0 ; return -1 ; } * size = len ; return 0 ; }
fit_image_get_data - get data property and its size for a given component image node
 @fit: pointer to the FIT format image header
 @noffset: component image node offset
 @data: double pointer to void, will hold data property's data address
 @size: pointer to size_t, will hold data property's data size
fit_image_get_data - get data property and its size for a given component image node @fit : pointer to the FIT format image header @noffset : component image node offset @data : double pointer to void will hold data property ' s data address @size : pointer to size_t will hold data property ' s data size