Changeset 903bac0a in mainline for uspace/srv/hid/input/port/chardev.c
- Timestamp:
- 2011-08-19T09:00:38Z (14 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- e2ab36f1
- Parents:
- d894fbd (diff), 42a619b (diff)
Note: this is a merge changeset, the changes displayed below correspond to the merge itself.
Use the(diff)
links above to see all the changes relative to each parent. - File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/port/chardev.c
rd894fbd r903bac0a 40 40 #include <kbd_port.h> 41 41 #include <kbd.h> 42 #include < devmap.h>42 #include <loc.h> 43 43 #include <errno.h> 44 44 #include <stdio.h> … … 71 71 static int chardev_port_init(kbd_dev_t *kdev) 72 72 { 73 devmap_handle_t handle;73 service_id_t service_id; 74 74 async_exch_t *exch; 75 75 unsigned int i; … … 79 79 80 80 for (i = 0; i < num_devs; i++) { 81 rc = devmap_device_get_handle(in_devs[i], &handle, 0);81 rc = loc_service_get_id(in_devs[i], &service_id, 0); 82 82 if (rc == EOK) 83 83 break; … … 89 89 } 90 90 91 dev_sess = devmap_device_connect(EXCHANGE_ATOMIC, handle,91 dev_sess = loc_service_connect(EXCHANGE_ATOMIC, service_id, 92 92 IPC_FLAG_BLOCKING); 93 93 if (dev_sess == NULL) {
Note:
See TracChangeset
for help on using the changeset viewer.