Changeset 984a9ba in mainline for uspace/drv/hid/atkbd/atkbd.c
- Timestamp:
- 2018-07-05T09:34:09Z (6 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 63d46341
- Parents:
- 76f566d
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/atkbd/atkbd.c
r76f566d r984a9ba 292 292 /** Default handler for IPC methods not handled by DDF. 293 293 * 294 * @param fun Device function handling the call. 295 * @param icall_handle Call handle. 296 * @param icall Call data. 297 * 298 */ 299 static void 300 default_connection_handler(ddf_fun_t *fun, cap_call_handle_t icall_handle, 301 ipc_call_t *icall) 294 * @param fun Device function handling the call. 295 * @param icall Call data. 296 * 297 */ 298 static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall) 302 299 { 303 300 const sysarg_t method = IPC_GET_IMETHOD(*icall); … … 307 304 switch (method) { 308 305 case KBDEV_SET_IND: 309 async_answer_0(icall _handle, ENOTSUP);306 async_answer_0(icall, ENOTSUP); 310 307 break; 311 308 case IPC_M_CONNECT_TO_ME: … … 320 317 ddf_msg(LVL_WARN, 321 318 "Failed creating callback session"); 322 async_answer_0(icall _handle, EAGAIN);319 async_answer_0(icall, EAGAIN); 323 320 break; 324 321 } … … 327 324 kbd->client_sess = sess; 328 325 ddf_msg(LVL_DEBUG, "Set client session"); 329 async_answer_0(icall _handle, EOK);326 async_answer_0(icall, EOK); 330 327 } else { 331 328 ddf_msg(LVL_ERROR, "Client session already set"); 332 async_answer_0(icall _handle, ELIMIT);329 async_answer_0(icall, ELIMIT); 333 330 } 334 331 … … 336 333 default: 337 334 ddf_msg(LVL_ERROR, "Unknown method: %d.", (int)method); 338 async_answer_0(icall _handle, EINVAL);335 async_answer_0(icall, EINVAL); 339 336 break; 340 337 }
Note:
See TracChangeset
for help on using the changeset viewer.