Changes in uspace/srv/devman/match.c [ba38f72c:cc70d57] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/devman/match.c
rba38f72c rcc70d57 46 46 if (str_cmp(driver->id, device->id) == 0) { 47 47 /* 48 * The strings match , return the product of their scores.48 * The strings matches, return their score multiplied. 49 49 */ 50 50 return driver->score * device->score; … … 57 57 } 58 58 59 int get_match_score(driver_t *drv, dev_node_t *dev)59 int get_match_score(driver_t *drv, node_t *dev) 60 60 { 61 61 link_t *drv_head = &drv->match_ids.ids; 62 link_t *dev_head = &dev-> pfun->match_ids.ids;62 link_t *dev_head = &dev->match_ids.ids; 63 63 64 64 if (list_empty(drv_head) || list_empty(dev_head)) … … 66 66 67 67 /* 68 * Go through all pairs, return the highest score obtaine d.68 * Go through all pairs, return the highest score obtainetd. 69 69 */ 70 70 int highest_score = 0;
Note:
See TracChangeset
for help on using the changeset viewer.