Changes in uspace/srv/hid/input/port/adb.c [f81498d:15f3c3f] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/adb.c
rf81498d r15f3c3f 37 37 #include <ipc/adb.h> 38 38 #include <async.h> 39 #include <input.h> 40 #include <kbd_port.h> 41 #include <kbd.h> 39 42 #include <vfs/vfs.h> 40 43 #include <fcntl.h> 41 44 #include <errno.h> 42 45 #include <loc.h> 43 #include "../input.h"44 #include "../kbd_port.h"45 #include "../kbd.h"46 46 47 47 static void kbd_port_events(ipc_callid_t iid, ipc_call_t *icall, void *arg); … … 65 65 static int adb_port_init(kbd_dev_t *kdev) 66 66 { 67 const char *dev = "adb/kbd"; 68 service_id_t service_id; 69 async_exch_t *exch; 70 int rc; 71 67 72 kbd_dev = kdev; 68 73 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); 72 75 if (rc != EOK) 73 76 return rc; … … 79 82 } 80 83 81 async_exch_t *exch = async_exchange_begin(dev_sess);84 exch = async_exchange_begin(dev_sess); 82 85 if (exch == NULL) { 83 86 printf("%s: Failed starting exchange with device\n", NAME); … … 86 89 } 87 90 91 /* NB: The callback connection is slotted for removal */ 88 92 rc = async_connect_to_me(exch, 0, 0, 0, kbd_port_events, NULL); 89 93 async_exchange_end(exch); … … 118 122 ipc_callid_t callid = async_get_call(&call); 119 123 120 int retval = EOK;124 int retval; 121 125 122 126 if (!IPC_GET_IMETHOD(call)) {
Note:
See TracChangeset
for help on using the changeset viewer.