lib/sw_apps/zynqmp_pmufw/src/pm_requirement.c
PmRequirement* PmRequirementAdd(PmMaster* const master, PmSlave* const slave)
{
	PmRequirement* req = PmRequirementMalloc();

	if (NULL == req) {
		goto done;
	}

	req->master = master;
	req->slave = slave;
	PmRequirementLink(req);

done:
	return req;
}
/**
 * PmRequirementAdd() - Add a requirement structure for master/slave pair
 * @master      Master that can use the slave
 * @slave       Slave that can be used by the master
 *
 * @return      Pointer to the requirement if added, NULL if there is no
 *              free memory to add new requirement
 */
Add a requirement structure for master/slave pair
@master      Master that can use the slave
@slave       Slave that can be used by the master

@return      Pointer to the requirement if added, NULL if there is no
free memory to add new requirement
Add a requirement structure for master / slave pair @master Master that can use the slave @slave Slave that can be used by the master @return Pointer to the requirement if added NULL if there is no free memory to add new requirement
PmRequirement* PmRequirementAdd(PmMaster* const master, PmSlave* const slave)
{
	PmRequirement* req = PmRequirementMalloc();
	if (NULL == req) {
		goto done;
	}
	req->master = master;
	req->slave = slave;
	PmRequirementLink(req);
done:
	return req;
}
PmRequirement * PmRequirementAdd ( PmMaster * const master , PmSlave * const slave ) { PmRequirement * req = PmRequirementMalloc ( ) ; if ( NULL == req ) { goto done ; } req -> master = master ; req -> slave = slave ; PmRequirementLink ( req ) ; done : return req ; }
PmRequirementAdd() - Add a requirement structure for master/slave pair
 @master      Master that can use the slave
 @slave       Slave that can be used by the master
PmRequirementAdd () - Add a requirement structure for master / slave pair @master Master that can use the slave @slave Slave that can be used by the master