/* Get the MIPI DSI host controller instance from peripheral base address.  */
uint32_t DSI_GetInstance(const MIPI_DSI_Type *base)
/* Get the MIPI DSI host controller instance from peripheral base address.  */
uint32_t DSI_GetInstance(const MIPI_DSI_Type *base)
{
    uint32_t instance;
    for (instance = 0; instance < ARRAY_SIZE(s_dsiBases); instance++)
    {
        if (s_dsiBases[instance] == base->host)
        {
            break;
        }
    }
    assert(instance < ARRAY_SIZE(s_dsiBases));
    return instance;
}