Changeset a46e56b in mainline for uspace/drv/hid/ps2mouse/ps2mouse.c


Ignore:
Timestamp:
2018-03-22T06:49:35Z (7 years ago)
Author:
Jakub Jermar <jakub@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, 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)
Message:

Prefer handle over ID in naming handle variables

File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/ps2mouse/ps2mouse.c

    r3e242d2 ra46e56b  
    400400 *
    401401 * @param fun Device function handling the call.
    402  * @param icallid Call id.
     402 * @param icall_handle Call id.
    403403 * @param icall Call data.
    404404 */
    405405void default_connection_handler(ddf_fun_t *fun,
    406     cap_call_handle_t icallid, ipc_call_t *icall)
     406    cap_call_handle_t icall_handle, ipc_call_t *icall)
    407407{
    408408        const sysarg_t method = IPC_GET_IMETHOD(*icall);
     
    419419                        ddf_msg(LVL_WARN,
    420420                            "Failed creating client callback session");
    421                         async_answer_0(icallid, EAGAIN);
     421                        async_answer_0(icall_handle, EAGAIN);
    422422                        break;
    423423                }
     
    425425                        mouse->client_sess = sess;
    426426                        ddf_msg(LVL_DEBUG, "Set client session");
    427                         async_answer_0(icallid, EOK);
     427                        async_answer_0(icall_handle, EOK);
    428428                } else {
    429429                        ddf_msg(LVL_ERROR, "Client session already set");
    430                         async_answer_0(icallid, ELIMIT);
     430                        async_answer_0(icall_handle, ELIMIT);
    431431                }
    432432                break;
    433433        default:
    434434                ddf_msg(LVL_ERROR, "Unknown method: %d.", (int)method);
    435                 async_answer_0(icallid, EINVAL);
     435                async_answer_0(icall_handle, EINVAL);
    436436                break;
    437437        }
Note: See TracChangeset for help on using the changeset viewer.