Ignore:
File:
1 edited

Legend:

Unmodified
Added
Removed
  • uspace/srv/hid/input/port/adb.c

    rf81498d r15f3c3f  
    3737#include <ipc/adb.h>
    3838#include <async.h>
     39#include <input.h>
     40#include <kbd_port.h>
     41#include <kbd.h>
    3942#include <vfs/vfs.h>
    4043#include <fcntl.h>
    4144#include <errno.h>
    4245#include <loc.h>
    43 #include "../input.h"
    44 #include "../kbd_port.h"
    45 #include "../kbd.h"
    4646
    4747static void kbd_port_events(ipc_callid_t iid, ipc_call_t *icall, void *arg);
     
    6565static int adb_port_init(kbd_dev_t *kdev)
    6666{
     67        const char *dev = "adb/kbd";
     68        service_id_t service_id;
     69        async_exch_t *exch;
     70        int rc;
     71       
    6772        kbd_dev = kdev;
    6873       
    69         const char *dev = "adb/kbd";
    70         service_id_t service_id;
    71         int rc = loc_service_get_id(dev, &service_id, 0);
     74        rc = loc_service_get_id(dev, &service_id, 0);
    7275        if (rc != EOK)
    7376                return rc;
     
    7982        }
    8083       
    81         async_exch_t *exch = async_exchange_begin(dev_sess);
     84        exch = async_exchange_begin(dev_sess);
    8285        if (exch == NULL) {
    8386                printf("%s: Failed starting exchange with device\n", NAME);
     
    8689        }
    8790       
     91        /* NB: The callback connection is slotted for removal */
    8892        rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL);
    8993        async_exchange_end(exch);
     
    118122                ipc_callid_t callid = async_get_call(&call);
    119123
    120                 int retval = EOK;
     124                int retval;
    121125               
    122126                if (!IPC_GET_IMETHOD(call)) {
Note: See TracChangeset for help on using the changeset viewer.