Changeset a46e56b in mainline for uspace/drv/intctl/icp-ic/icp-ic.c


Ignore:
Timestamp:
2018-03-22T06:49:35Z (6 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/intctl/icp-ic/icp-ic.c

    r3e242d2 ra46e56b  
    6969 * @param arg   Local argument.
    7070 */
    71 static void icpic_connection(cap_call_handle_t iid, ipc_call_t *icall, void *arg)
     71static void icpic_connection(cap_call_handle_t icall_handle, ipc_call_t *icall, void *arg)
    7272{
    73         cap_call_handle_t callid;
     73        cap_call_handle_t chandle;
    7474        ipc_call_t call;
    7575        icpic_t *icpic;
     
    7878         * Answer the first IPC_M_CONNECT_ME_TO call.
    7979         */
    80         async_answer_0(iid, EOK);
     80        async_answer_0(icall_handle, EOK);
    8181
    8282        icpic = (icpic_t *)ddf_dev_data_get(ddf_fun_get_dev((ddf_fun_t *)arg));
    8383
    8484        while (true) {
    85                 callid = async_get_call(&call);
     85                chandle = async_get_call(&call);
    8686
    8787                if (!IPC_GET_IMETHOD(call)) {
    8888                        /* The other side has hung up. */
    89                         async_answer_0(callid, EOK);
     89                        async_answer_0(chandle, EOK);
    9090                        return;
    9191                }
     
    9393                switch (IPC_GET_IMETHOD(call)) {
    9494                case IRC_ENABLE_INTERRUPT:
    95                         async_answer_0(callid,
     95                        async_answer_0(chandle,
    9696                            icpic_enable_irq(icpic, IPC_GET_ARG1(call)));
    9797                        break;
    9898                case IRC_DISABLE_INTERRUPT:
    9999                        /* XXX TODO */
    100                         async_answer_0(callid, EOK);
     100                        async_answer_0(chandle, EOK);
    101101                        break;
    102102                case IRC_CLEAR_INTERRUPT:
    103103                        /* Noop */
    104                         async_answer_0(callid, EOK);
     104                        async_answer_0(chandle, EOK);
    105105                        break;
    106106                default:
    107                         async_answer_0(callid, EINVAL);
     107                        async_answer_0(chandle, EINVAL);
    108108                        break;
    109109                }
Note: See TracChangeset for help on using the changeset viewer.