linux/drivers/fpga/fpga-mgr.c
/**
 * fpga_image_info_alloc - Allocate a FPGA image info struct
 * @dev: owning device
 *
 * Return: struct fpga_image_info or NULL
 */
Allocate a FPGA image info struct
@dev: owning device

struct fpga_image_info or NULL
Allocate a FPGA image info struct @dev : owning device struct fpga_image_info or NULL
struct fpga_image_info *fpga_image_info_alloc(struct device *dev)
{
	struct fpga_image_info *info;
	get_device(dev);
	info = devm_kzalloc(dev, sizeof(*info), GFP_KERNEL);
	if (!info) {
		put_device(dev);
		return NULL;
	}
	info->dev = dev;
	return info;
}
struct fpga_image_info * fpga_image_info_alloc ( struct device * dev ) { struct fpga_image_info * info ; get_device ( dev ) ; info = devm_kzalloc ( dev , sizeof ( * info ) , GFP_KERNEL ) ; if ( ! info ) { put_device ( dev ) ; return NULL ; } info -> dev = dev ; return info ; }
fpga_image_info_alloc - Allocate a FPGA image info struct
 @dev: owning device
fpga_image_info_alloc - Allocate a FPGA image info struct @dev : owning device