Changeset a46e56b in mainline for uspace/drv/hid/usbhid/mouse
- Timestamp:
- 2018-03-22T06:49:35Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/fix-logger-deadlock, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- 77f0a1d
- Parents:
- 3e242d2
- git-author:
- Jakub Jermar <jakub@…> (2018-03-21 23:29:06)
- git-committer:
- Jakub Jermar <jakub@…> (2018-03-22 06:49:35)
- File:
-
- 1 edited
-
uspace/drv/hid/usbhid/mouse/mousedev.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/usbhid/mouse/mousedev.c
r3e242d2 ra46e56b 110 110 * 111 111 * @param fun Device function handling the call. 112 * @param icall idCall id.112 * @param icall_handle Call id. 113 113 * @param icall Call data. 114 114 */ 115 115 static void default_connection_handler(ddf_fun_t *fun, 116 cap_call_handle_t icall id, ipc_call_t *icall)116 cap_call_handle_t icall_handle, ipc_call_t *icall) 117 117 { 118 118 usb_mouse_t *mouse_dev = ddf_fun_data_get(fun); … … 120 120 if (mouse_dev == NULL) { 121 121 usb_log_debug("%s: Missing parameters.", __FUNCTION__); 122 async_answer_0(icall id, EINVAL);122 async_answer_0(icall_handle, EINVAL); 123 123 return; 124 124 } … … 135 135 usb_log_debug("Console session to %s set ok (%p).", 136 136 ddf_fun_get_name(fun), sess); 137 async_answer_0(icall id, EOK);137 async_answer_0(icall_handle, EOK); 138 138 } else { 139 139 usb_log_error("Console session to %s already set.", 140 140 ddf_fun_get_name(fun)); 141 async_answer_0(icall id, ELIMIT);141 async_answer_0(icall_handle, ELIMIT); 142 142 async_hangup(sess); 143 143 } 144 144 } else { 145 145 usb_log_debug("%s: Invalid function.", __FUNCTION__); 146 async_answer_0(icall id, EINVAL);146 async_answer_0(icall_handle, EINVAL); 147 147 } 148 148 }
Note:
See TracChangeset
for help on using the changeset viewer.
