/* This function looks for the device configuration based on the unique device ID. The table XGpioPs_ConfigTable contains the configuration information for each device in the system. */
XGpioPs_Config* XGpioPs_LookupConfig(u16 DeviceId)
/* This function looks for the device configuration based on the unique device ID. The table XGpioPs_ConfigTable contains the configuration information for each device in the system. */
XGpioPs_Config* XGpioPs_LookupConfig(u16 DeviceId)
{
	XGpioPs_Config *CfgPtr = NULL;
	u32 Index;
	for (Index = 0U; Index < (u32)XPAR_XGPIOPS_NUM_INSTANCES; Index++) {
		if (XGpioPs_ConfigTable[Index].DeviceId == DeviceId) {
			CfgPtr = &XGpioPs_ConfigTable[Index];
			break;
		}
	}
	return (XGpioPs_Config *)CfgPtr;
}
/** @}