Changeset 984a9ba in mainline for uspace/drv/hid/xtkbd/xtkbd.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/xtkbd/xtkbd.c
r76f566d r984a9ba 328 328 /** Default handler for IPC methods not handled by DDF. 329 329 * 330 * @param fun Device function handling the call. 331 * @param icall_handle Call handle. 332 * @param icall Call data. 333 * 334 */ 335 static void default_connection_handler(ddf_fun_t *fun, 336 cap_call_handle_t icall_handle, ipc_call_t *icall) 330 * @param fun Device function handling the call. 331 * @param icall Call data. 332 * 333 */ 334 static void default_connection_handler(ddf_fun_t *fun, ipc_call_t *icall) 337 335 { 338 336 const sysarg_t method = IPC_GET_IMETHOD(*icall); … … 357 355 errno_t rc = chardev_write(kbd->chardev, &cmds[0], 1, &nwr); 358 356 if (rc != EOK) { 359 async_answer_0(icall _handle, rc);357 async_answer_0(icall, rc); 360 358 break; 361 359 } 362 360 363 361 rc = chardev_write(kbd->chardev, &cmds[1], 1, &nwr); 364 async_answer_0(icall _handle, rc);362 async_answer_0(icall, rc); 365 363 break; 366 364 case IPC_M_CONNECT_TO_ME: … … 375 373 ddf_msg(LVL_WARN, 376 374 "Failed creating callback session"); 377 async_answer_0(icall _handle, EAGAIN);375 async_answer_0(icall, EAGAIN); 378 376 break; 379 377 } … … 382 380 kbd->client_sess = sess; 383 381 ddf_msg(LVL_DEBUG, "Set client session"); 384 async_answer_0(icall _handle, EOK);382 async_answer_0(icall, EOK); 385 383 } else { 386 384 ddf_msg(LVL_ERROR, "Client session already set"); 387 async_answer_0(icall _handle, ELIMIT);385 async_answer_0(icall, ELIMIT); 388 386 } 389 387 … … 391 389 default: 392 390 ddf_msg(LVL_ERROR, "Unknown method: %d.", (int)method); 393 async_answer_0(icall _handle, EINVAL);391 async_answer_0(icall, EINVAL); 394 392 break; 395 393 }
Note:
See TracChangeset
for help on using the changeset viewer.