Changes in uspace/srv/hid/input/ctl/kbdev.c [1875a0c:854eddd6] in mainline
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/srv/hid/input/ctl/kbdev.c
r1875a0c r854eddd6 53 53 54 54 static int kbdev_ctl_init(kbd_dev_t *); 55 static void kbdev_ctl_set_ind(kbd_dev_t *, unsigned int);55 static void kbdev_ctl_set_ind(kbd_dev_t *, unsigned); 56 56 57 57 static void kbdev_callback_conn(ipc_callid_t, ipc_call_t *, void *arg); 58 58 59 59 kbd_ctl_ops_t kbdev_ctl = { 60 .parse = NULL,60 .parse_scancode = NULL, 61 61 .init = kbdev_ctl_init, 62 62 .set_ind = kbdev_ctl_set_ind … … 116 116 sess = fd_session(EXCHANGE_SERIALIZE, fd); 117 117 if (sess == NULL) { 118 printf( "%s: Failed starting session with '%s'\n", NAME, pathname);118 printf(NAME ": Failed starting session with '%s'\n", pathname); 119 119 close(fd); 120 120 return -1; … … 123 123 kbdev = kbdev_new(kdev); 124 124 if (kbdev == NULL) { 125 printf( "%s: Failed allocating device structure for '%s'.\n",126 NAME,pathname);125 printf(NAME ": Failed allocating device structure for '%s'.\n", 126 pathname); 127 127 return -1; 128 128 } … … 133 133 exch = async_exchange_begin(sess); 134 134 if (exch == NULL) { 135 printf( "%s: Failed starting exchange with '%s'.\n", NAME, pathname);135 printf(NAME ": Failed starting exchange with '%s'.\n", pathname); 136 136 kbdev_destroy(kbdev); 137 137 return -1; … … 140 140 rc = async_connect_to_me(exch, 0, 0, 0, kbdev_callback_conn, kbdev); 141 141 if (rc != EOK) { 142 printf( "%s: Failed creating callback connection from '%s'.\n",143 NAME,pathname);142 printf(NAME ": Failed creating callback connection from '%s'.\n", 143 pathname); 144 144 async_exchange_end(exch); 145 145 kbdev_destroy(kbdev); … … 193 193 type = IPC_GET_ARG1(call); 194 194 key = IPC_GET_ARG2(call); 195 kbd_push_ev ent(kbdev->kbd_dev, type, key);195 kbd_push_ev(kbdev->kbd_dev, type, key); 196 196 break; 197 197 default:
Note:
See TracChangeset
for help on using the changeset viewer.