Changeset b7fd2a0 in mainline for uspace/drv/hid/xtkbd
- Timestamp:
- 2018-01-13T03:10:29Z (8 years ago)
- Branches:
- lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
- Children:
- a53ed3a
- Parents:
- 36f0738
- Location:
- uspace/drv/hid/xtkbd
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
uspace/drv/hid/xtkbd/main.c
r36f0738 rb7fd2a0 46 46 #define NAME "xtkbd" 47 47 48 static int xt_kbd_add(ddf_dev_t *device);48 static errno_t xt_kbd_add(ddf_dev_t *device); 49 49 50 50 /** DDF driver ops. */ … … 83 83 * 84 84 */ 85 static int xt_kbd_add(ddf_dev_t *device)85 static errno_t xt_kbd_add(ddf_dev_t *device) 86 86 { 87 int rc;87 errno_t rc; 88 88 89 89 if (!device) -
uspace/drv/hid/xtkbd/xtkbd.c
r36f0738 rb7fd2a0 205 205 * 206 206 */ 207 static int polling(void *arg)207 static errno_t polling(void *arg) 208 208 { 209 209 xt_kbd_t *kbd = arg; 210 210 size_t nread; 211 int rc;211 errno_t rc; 212 212 213 213 while (true) { … … 353 353 354 354 size_t nwr; 355 int rc = chardev_write(kbd->chardev, &cmds[0], 1, &nwr);355 errno_t rc = chardev_write(kbd->chardev, &cmds[0], 1, &nwr); 356 356 if (rc != EOK) { 357 357 async_answer_0(icallid, rc); … … 410 410 * 411 411 */ 412 int xt_kbd_init(xt_kbd_t *kbd, ddf_dev_t *dev)412 errno_t xt_kbd_init(xt_kbd_t *kbd, ddf_dev_t *dev) 413 413 { 414 414 async_sess_t *parent_sess; 415 415 bool bound = false; 416 int rc;416 errno_t rc; 417 417 418 418 kbd->client_sess = NULL; -
uspace/drv/hid/xtkbd/xtkbd.h
r36f0738 rb7fd2a0 55 55 } xt_kbd_t; 56 56 57 extern int xt_kbd_init(xt_kbd_t *, ddf_dev_t *);57 extern errno_t xt_kbd_init(xt_kbd_t *, ddf_dev_t *); 58 58 59 59 #endif
Note:
See TracChangeset
for help on using the changeset viewer.
