MCPcopy Create free account
hub / github.com/RT-Thread/rt-thread / sdio_match_driver

Function sdio_match_driver

components/drivers/sdio/dev_sdio.c:1324–1342  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1322
1323
1324static struct rt_mmcsd_card *sdio_match_driver(struct rt_sdio_device_id *id)
1325{
1326 rt_list_t *l;
1327 struct sdio_card *sc;
1328 struct rt_mmcsd_card *card;
1329
1330 for (l = (&sdio_cards)->next; l != &sdio_cards; l = l->next)
1331 {
1332 sc = (struct sdio_card *)rt_list_entry(l, struct sdio_card, list);
1333 card = sc->card;
1334
1335 if (sdio_match_card(card, id))
1336 {
1337 return card;
1338 }
1339 }
1340
1341 return RT_NULL;
1342}
1343
1344rt_int32_t sdio_register_driver(struct rt_sdio_driver *driver)
1345{

Callers 2

sdio_register_driverFunction · 0.85
sdio_unregister_driverFunction · 0.85

Calls 1

sdio_match_cardFunction · 0.85

Tested by

no test coverage detected