Changes in uspace/srv/hid/input/port/adb.c [3123d2a:9d58539] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/adb.c
r3123d2a r9d58539 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);
Note:
See TracChangeset
for help on using the changeset viewer.