src/graphics/display/drivers/dsi-mt/dsi-mt.cc
// main bind function called from dev manager
main bind function called from dev manager
main bind function called from dev manager
zx_status_t dsi_mt_bind(void* ctx, zx_device_t* parent) {
  fbl::AllocChecker ac;
  auto dev = fbl::make_unique_checked<dsi_mt::DsiMt>(&ac, parent);
  if (!ac.check()) {
    return ZX_ERR_NO_MEMORY;
  }
  auto status = dev->Bind();
  if (status == ZX_OK) {
    __UNUSED auto ptr = dev.release();
  }
  return status;
}
zx_status_t dsi_mt_bind ( void * ctx , zx_device_t * parent ) { fbl :: AllocChecker ac ; auto dev = fbl :: make_unique_checked < dsi_mt :: DsiMt > ( & ac , parent ) ; if ( ! ac . check ( ) ) { return ZX_ERR_NO_MEMORY ; } auto status = dev -> Bind ( ) ; if ( status == ZX_OK ) { __UNUSED auto ptr = dev . release ( ) ; } return status ; }
main bind function called from dev manager
main bind function called from dev manager
// devmgr is now in charge of the memory for dev