Changeset 8b863a62 in mainline for uspace/lib/drv/generic/driver.c
- Timestamp:
- 2014-04-16T17:14:06Z (12 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- f857e8b
- Parents:
- dba3e2c (diff), 70b570c (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)links above to see all the changes relative to each parent. - File:
-
- 1 edited
-
uspace/lib/drv/generic/driver.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/lib/drv/generic/driver.c
rdba3e2c r8b863a62 63 63 64 64 /** Driver structure */ 65 static driver_t *driver;65 static const driver_t *driver; 66 66 67 67 /** Devices */ … … 98 98 static ddf_dev_t *driver_get_device(devman_handle_t handle) 99 99 { 100 ddf_dev_t *dev = NULL;101 102 100 assert(fibril_mutex_is_locked(&devices_mutex)); 103 101 104 list_foreach(devices, link) { 105 dev = list_get_instance(link, ddf_dev_t, link); 102 list_foreach(devices, link, ddf_dev_t, dev) { 106 103 if (dev->handle == handle) 107 104 return dev; … … 113 110 static ddf_fun_t *driver_get_function(devman_handle_t handle) 114 111 { 115 ddf_fun_t *fun = NULL;116 117 112 assert(fibril_mutex_is_locked(&functions_mutex)); 118 113 119 list_foreach(functions, link) { 120 fun = list_get_instance(link, ddf_fun_t, link); 114 list_foreach(functions, link, ddf_fun_t, fun) { 121 115 if (fun->handle == handle) 122 116 return fun; … … 419 413 * handling ("remote interface"). 420 414 */ 421 remote_iface_t *rem_iface = get_remote_iface(iface_idx);415 const remote_iface_t *rem_iface = get_remote_iface(iface_idx); 422 416 assert(rem_iface != NULL); 423 417 … … 962 956 } 963 957 964 int ddf_driver_main( driver_t *drv)958 int ddf_driver_main(const driver_t *drv) 965 959 { 966 960 /*
Note:
See TracChangeset
for help on using the changeset viewer.
