Changeset 5a6cc679 in mainline for uspace/drv/hid/xtkbd


Ignore:
Timestamp:
2018-01-31T02:21:24Z (8 years ago)
Author:
Jenda <jenda.jzqk73@…>
Branches:
lfn, master, serial, ticket/834-toolchain-update, topic/msim-upgrade, topic/simplify-dev-export
Children:
a0a9cc2
Parents:
132ab5d1
Message:

Merge commit '50f19b7ee8e94570b5c63896736c4eb49cfa18db' into forwardport

Not all ints are converted to errno_t in xhci tree yet, however it compiles and works :)

Location:
uspace/drv/hid/xtkbd
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • uspace/drv/hid/xtkbd/main.c

    r132ab5d1 r5a6cc679  
    4646#define NAME "xtkbd"
    4747
    48 static int xt_kbd_add(ddf_dev_t *device);
     48static errno_t xt_kbd_add(ddf_dev_t *device);
    4949
    5050/** DDF driver ops. */
     
    8383 *
    8484 */
    85 static int xt_kbd_add(ddf_dev_t *device)
     85static errno_t xt_kbd_add(ddf_dev_t *device)
    8686{
    87         int rc;
     87        errno_t rc;
    8888
    8989        if (!device)
  • uspace/drv/hid/xtkbd/xtkbd.c

    r132ab5d1 r5a6cc679  
    205205 *
    206206 */
    207 static int polling(void *arg)
     207static errno_t polling(void *arg)
    208208{
    209209        xt_kbd_t *kbd = arg;
    210210        size_t nread;
    211         int rc;
     211        errno_t rc;
    212212       
    213213        while (true) {
     
    353353               
    354354                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);
    356356                if (rc != EOK) {
    357357                        async_answer_0(icallid, rc);
     
    410410 *
    411411 */
    412 int xt_kbd_init(xt_kbd_t *kbd, ddf_dev_t *dev)
     412errno_t xt_kbd_init(xt_kbd_t *kbd, ddf_dev_t *dev)
    413413{
    414414        async_sess_t *parent_sess;
    415415        bool bound = false;
    416         int rc;
     416        errno_t rc;
    417417       
    418418        kbd->client_sess = NULL;
  • uspace/drv/hid/xtkbd/xtkbd.h

    r132ab5d1 r5a6cc679  
    5555} xt_kbd_t;
    5656
    57 extern int xt_kbd_init(xt_kbd_t *, ddf_dev_t *);
     57extern errno_t xt_kbd_init(xt_kbd_t *, ddf_dev_t *);
    5858
    5959#endif
Note: See TracChangeset for help on using the changeset viewer.