linux/drivers/fpga/fpga-mgr.c
/**
 * fpga_mgr_get - Given a device, get a reference to a fpga mgr.
 * @dev:	parent device that fpga mgr was registered with
 *
 * Return: fpga manager struct or IS_ERR() condition containing error code.
 */
Given a device, get a reference to a fpga mgr.
@dev:        parent device that fpga mgr was registered with

fpga manager struct or IS_ERR() condition containing error code.
Given a device get a reference to a fpga mgr . @dev : parent device that fpga mgr was registered with fpga manager struct or IS_ERR () condition containing error code .
struct fpga_manager *fpga_mgr_get(struct device *dev)
{
	struct device *mgr_dev = class_find_device(fpga_mgr_class, NULL, dev,
						   fpga_mgr_dev_match);
	if (!mgr_dev)
		return ERR_PTR(-ENODEV);
	return __fpga_mgr_get(mgr_dev);
}
struct fpga_manager * fpga_mgr_get ( struct device * dev ) { struct device * mgr_dev = class_find_device ( fpga_mgr_class , NULL , dev , fpga_mgr_dev_match ) ; if ( ! mgr_dev ) return ERR_PTR ( - ENODEV ) ; return __fpga_mgr_get ( mgr_dev ) ; }
fpga_mgr_get - Given a device, get a reference to a fpga mgr.
fpga_mgr_get - Given a device get a reference to a fpga mgr .