Changeset a2afd8f in mainline for uspace/drv/bus/adb/cuda_adb/cuda_adb.c
- Timestamp:
- 2017-11-13T18:07:46Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 0dd4779
- Parents:
- 56763a4
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/bus/adb/cuda_adb/cuda_adb.c
r56763a4 ra2afd8f 109 109 }; 110 110 111 static int cuda_dev_create(cuda_t *cuda, const char *name, adb_dev_t **rdev) 111 static int cuda_dev_create(cuda_t *cuda, const char *name, const char *id, 112 adb_dev_t **rdev) 112 113 { 113 114 adb_dev_t *dev = NULL; … … 115 116 int rc; 116 117 117 fun = ddf_fun_create(cuda->dev, fun_ exposed, name);118 fun = ddf_fun_create(cuda->dev, fun_inner, name); 118 119 if (fun == NULL) { 119 120 ddf_msg(LVL_ERROR, "Failed creating function '%s'.", name); 121 rc = ENOMEM; 122 goto error; 123 } 124 125 rc = ddf_fun_add_match_id(fun, id, 10); 126 if (rc != EOK) { 127 ddf_msg(LVL_ERROR, "Failed adding match ID."); 120 128 rc = ENOMEM; 121 129 goto error; … … 156 164 cuda->phys_base = res->base; 157 165 158 rc = cuda_dev_create(cuda, "kbd", &kbd);166 rc = cuda_dev_create(cuda, "kbd", "adb/keyboard", &kbd); 159 167 if (rc != EOK) 160 168 goto error; 161 169 162 rc = cuda_dev_create(cuda, "mouse", &mouse);170 rc = cuda_dev_create(cuda, "mouse", "adb/mouse", &mouse); 163 171 if (rc != EOK) 164 172 goto error;
Note:
See TracChangeset
for help on using the changeset viewer.